-
-
Save nazmul202101/70c001fa1f8cdfcd3ecd8655e4066171 to your computer and use it in GitHub Desktop.
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
public static void main(String[] args) { | |
try { | |
Scanner sc = new Scanner(new File(args[0])); | |
int n = Integer.parseInt(sc.next()); | |
for (int i = 0; i < n; i++) { | |
System.out.println(sc.next()); // TEST | |
} | |
} catch (FileNotFoundException e) { | |
System.out.println("File not found"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment