Skip to content

Commit 3917a72

Browse files
intial commit
1 parent d2d97c3 commit 3917a72

1 file changed

Lines changed: 30 additions & 4 deletions

File tree

NAVEEN/src/arrays.java

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,36 @@ public static void main(String nav[])
4141
/* String s="Navaen";
4242
s= s.replace("a","[.]");
4343
System.out.println(s);*/
44-
System.out.println("size");
45-
arrays n=new arrays(10);
46-
input();
47-
mixint();
44+
// System.out.println("size");
45+
// arrays n=new arrays(10);
46+
// input();
47+
// mixint();
48+
int ind[]= {4,5,6,7,0,2,1,3};
49+
String s="codeleet";
50+
51+
String str[]=new String[ind.length] ;
52+
for(int i=0;i<ind.length;i++)
53+
{
54+
str[ind[i]]=s.charAt(i)+"";
55+
56+
}
57+
58+
final ArrayList <Object> n=new ArrayList <>();
59+
// n=new ArrayList();// The final local variable n cannot be assigned. It must be blank and not using a compound
60+
// assignment
61+
n.add(233);
62+
n.add("db");
63+
// System.out.println("N1 -"+n);
64+
65+
ArrayList <Object> n2=n;
66+
67+
n2.add("REFERNCES");
68+
69+
System.out.println("N1-"+n);
70+
71+
System.out.println("N2-"+n2);
72+
73+
// System.out.println(Arrays.toString(str));
4874

4975

5076
}

0 commit comments

Comments
 (0)