Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3.  
  4. public class prob05
  5.  
  6. {
  7. public static void main(String args[])
  8. {
  9. double COFFEE = .50;
  10. double SODA = 1.00;
  11. double MILKSHAKE = 2.13;
  12. double PANCAKES = 3.25;
  13. double HAMBURGER = 4.01;
  14. double PASTA = 4.44;
  15. double HOTDOG = .65;
  16. double CHIPS = .50;
  17. double FRIES = .99;
  18.  
  19. Scanner file = new Scanner(new File("prob05.in.dat"));
  20. String cnt = file.nextLine();
  21. file.nextLine(); //clear out whitespace
  22. for(int i=0; i < 10; i++)
  23. {
  24. System.out.println(cnt);
  25. }
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. }
  33.  
  34.  
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement