Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class prob05
- {
- public static void main(String args[])
- {
- double COFFEE = .50;
- double SODA = 1.00;
- double MILKSHAKE = 2.13;
- double PANCAKES = 3.25;
- double HAMBURGER = 4.01;
- double PASTA = 4.44;
- double HOTDOG = .65;
- double CHIPS = .50;
- double FRIES = .99;
- Scanner file = new Scanner(new File("prob05.in.dat"));
- String cnt = file.nextLine();
- file.nextLine(); //clear out whitespace
- for(int i=0; i < 10; i++)
- {
- System.out.println(cnt);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement