Skip to content

Instantly share code, notes, and snippets.

@amippy
Last active March 20, 2016 07:08
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 amippy/d9fb9f525b7336e97e87 to your computer and use it in GitHub Desktop.
Save amippy/d9fb9f525b7336e97e87 to your computer and use it in GitHub Desktop.
筋トレ大好きな文系女学生のJava入門〜配列〜 ref: http://qiita.com/amippy/items/7744f68673ff6eff60e7
1 public class MuscleWorld{
2 public static void main(String[] args){
3 int[] number = {10,20,30,40,50};
4 for(int i = 0; i < number.length; i++){
5 System.out.println(number[i]);
6 }
7 }
8}
1 public class MuscleWorld{
2 public static void main(String[] args){
3 int[] number = {10,20,30,40,50};
4 for(int muscle : number){
5 System.out.println(muscle);
6 }
7 }
8}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment