Lab24c - Scanner file = new Scanner(new...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// A+ Computer Science  -  www.apluscompsci.com  //Name -  //Date -  //Lab  -  import java.io.File;  import java.io.IOException;  import java.util.Scanner;  import static java.lang.System.*;  public class Lab24c  public static void main( String args[] ) throws IOException 
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { Scanner file = new Scanner(new File("lab24c.dat")); int runCount = file.nextInt(); for (int i=0; i<runCount; i++) { int size = file.nextInt(); PascalsTriangle test = new PascalsTriangle(size); } } }...
View Full Document

This note was uploaded on 01/24/2011 for the course COMP SCI 543 taught by Professor Mark during the Spring '10 term at Brown College.

Ask a homework question - tutors are online