Created
November 21, 2015 08:41
-
-
Save Eternity-Yarr/8d6d709f62443f31dcbf to your computer and use it in GitHub Desktop.
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 static int[] initializeArray() | |
{ | |
int[] numbers = new int[20]; | |
Scanner in = new Scanner(System.in); | |
for (int i = 0; i < numbers.length; i++) { | |
numbers[i] = in.nextInt(); | |
} | |
return numbers; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment