Created
July 18, 2013 14:54
-
-
Save shikajiro/6029997 to your computer and use it in GitHub Desktop.
整数型の要素が100個ある配列を作ってください。
その配列に、0から99まで値を代入するfor文を書いてください。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HomeWork { | |
public static void main(String[] args) { | |
int[] numbers = new int[100]; | |
for (int i = 0; i < numbers.length; i++) { | |
numbers[i] = i; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment