Yo - Err.die("FILE NOT FOUND");...

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

View Full Document Right Arrow Icon
// The "Yo" class. import apsc142.*; public class Yo { public static void main (String[] args) { float array []=new float [10]; FileIn in= new FileIn ("piFile.txt"); if (in.readStatus == in.FILE_NOT_FOUND)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Err.die("FILE NOT FOUND"); while (in.readStatus != in.EOF){ for (int i = 0 ; i<10; i++){ array [i] = in.readFloat(); System.out.println (array[i]); } } } // main method } // Yo class...
View Full Document

Ask a homework question - tutors are online