Solution:
For Array
public class LoopExample {
public static void main(String[] args) {
int[] primes = {2, 3, 5, 7, 11, 13, 17, 19};
for(int p : primes) {
System.out.println(p);
}
}
}
For ArrayList
Iterator iter = m_oAccList.iterator();
while (iter.hasNext()) {
System.out.println("string " + iter.next());
}
2 comments:
ape nie kak sue?
ni la nota sy.
Post a Comment