Fill in the blanks. That’s all you have to do. Reading input from a disk can
work the same way
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
class _______________ {
public static void main(String args[])
throws FileNotFoundException {
Scanner diskScanner =
new Scanner(new File(“___________”));
________ = diskScanner.nextInt();
________ = diskScanner.nextDouble();
________ = diskScanner.nextLine();
________ = diskScanner.findInLine(“.”).charAt(0);
// Etc.
}
}
No comments:
Post a Comment