sarkanydavidhu

foreach

Dec 28th, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.14 KB | None | 0 0
  1. String[] s = {"Java", "Coffe", "Is", "Cool"};
  2. for(String str:s) {
  3.     System.out.println(str);
  4. }
  5.  
  6. /*
  7. Kimenet:
  8. Java
  9. Coffe
  10. Is
  11. Cool
  12. */
Advertisement
Add Comment
Please, Sign In to add comment