Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * TheLineRunner.java 9/26/2016
- *
- * @author - Daniel Lee
- * @author - Period 3
- * @author - Id 908531
- *
- * @author - I received help from (name)
- *
- */
- import java.io.IOException;
- import java.io.File;
- import java.util.Scanner;
- public class TheLineRunner
- {
- // Prints the lists of numbers and the largest number in each list
- public static void main( String[] args ) throws IOException
- {
- Scanner file = new Scanner(new File("line.dat"));
- int size = file.nextInt();
- file.nextLine();
- for (int i = 0; i < size; i++)
- {
- String num = file.nextLine();
- TheLine line = new TheLine(num);
- System.out.println(line.toString());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement