Created
November 22, 2014 11:22
-
-
Save peterkos/ee145a59cd6325476aa2 to your computer and use it in GitHub Desktop.
The Golden Input Method
This file contains hidden or 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
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
public static void askForInputFile() throws FileNotFoundException { | |
Scanner in = new Scanner(new File("src/input.txt")); | |
int positionInquiry = in.nextInt(); | |
position = new int[positionInquiry]; | |
for (int i = 0; i < positionInquiry; i++) { | |
int inputPosition = in.nextInt(); | |
position[i] = inputPosition; | |
} //End of for loop | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment