Guest User

Untitled

a guest
Nov 20th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. boolean program = true;
  2. while (program == true) {
  3. System.out.println("Please type 1-10 for stuff")
  4. input = bufferedReader.readLine();
  5. if(firstrunonly) {
  6. // set bunch of stuff
  7. }
  8. if(input.equals("1") {
  9. // all the way to 10
  10. }
  11.  
  12. }
  13.  
  14. boolean program = true;
  15. boolean firstrunonly = true;
  16. while (program == true) {
  17. System.out.println("Please type 1-10 for stuff")
  18. input = bufferedReader.readLine();
  19. if(firstrunonly) {
  20. // set bunch of stuff
  21. firstrunonly = false;
  22. }
  23. if(input.equals("1") {
  24. // all the way to 10
  25. }
  26.  
  27. }
  28.  
  29. boolean program = true;
  30. // set bunch of stuff
  31. ...
  32. while (program == true) {
  33. System.out.println("Please type 1-10 for stuff")
  34. input = bufferedReader.readLine();
  35. if(input.equals("1") {
  36. // all the way to 10
  37. }
  38.  
  39. }
Add Comment
Please, Sign In to add comment