Created
March 25, 2022 14:33
-
-
Save sarthaktexas/b5b852edcd6b0a8127a047a79b387128 to your computer and use it in GitHub Desktop.
Starter code for UIL Team Competition
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
import java.util.*; | |
import java.io.*; | |
class Starter { // Change the name to file name | |
public static void main(String[] args) throws Exception { | |
File file = new File("input.dat"); | |
Scanner scnr = new Scanner(file); | |
int count = scnr.nextInt(); | |
scnr.nextLine(); | |
for (int i = 0; i < count; i++) { | |
String line = scnr.nextLine(); | |
System.out.println(line); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment