Skip to content

Instantly share code, notes, and snippets.

@sarthaktexas
Created March 25, 2022 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarthaktexas/b5b852edcd6b0a8127a047a79b387128 to your computer and use it in GitHub Desktop.
Save sarthaktexas/b5b852edcd6b0a8127a047a79b387128 to your computer and use it in GitHub Desktop.
Starter code for UIL Team Competition
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