Skip to content

Instantly share code, notes, and snippets.

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