Lab24b - { Scanner file = new Scanner(new File

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 Lab24b  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 ("lab24b.dat")); int size = file.nextInt(); file.nextLine(); for(int i = 0; i<size; i++) { String word = file.next(); } } }...
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