packs
02-17-2009, 10:01 AM
In Java,
when i print this statement:-
here result is my arraylist
first i have list named arraylist
which is stored in arraylist.
program :-
for(;;)
{
list.add(0800);
list.add(1445 );
list.add(4350);
list.add("9W-7002");
result.add(list);
}
System.out.println(result);
output :-
[[0800, 1445, 4350, 9W-7002], [0800, 1215, 4350, 9W-7002], [0800, 1455, 4140, IC-7618], [0800, 1215, 3250, S2-122], [0900, 1010, 500.0, 6E-212]]
when i print this statement:-
here result is my arraylist
first i have list named arraylist
which is stored in arraylist.
program :-
for(;;)
{
list.add(0800);
list.add(1445 );
list.add(4350);
list.add("9W-7002");
result.add(list);
}
System.out.println(result);
output :-
[[0800, 1445, 4350, 9W-7002], [0800, 1215, 4350, 9W-7002], [0800, 1455, 4140, IC-7618], [0800, 1215, 3250, S2-122], [0900, 1010, 500.0, 6E-212]]