sarkanydavidhu

foreach2

Dec 28th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.19 KB | None | 0 0
  1. String[] s = {"Java", "Coffe", "Is", "Cool"};
  2. for(String str:s) {System.out.println(str);}
  3.  
  4. for(String kiskutya:s) {System.out.println(kiskutya);}
  5. for(String lili:s) {System.out.println(lili);}
Advertisement
Add Comment
Please, Sign In to add comment