int[] nums = new int[]{1, 2, 3, 4, 5};
for (int i: nums) {
System.out.println(i);
}
Created
June 26, 2015 02:45
-
-
Save madevelopers/7802a78c378789a55315 to your computer and use it in GitHub Desktop.
How to do a forEach loop in Java #java #flashcard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment