Advertisement
Guest User

Untitled

a guest
May 24th, 2019
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. D:\Desktop\NATO.java:43: error: cannot find symbol
  2. InputStreamReader isr = new InputStreamReader(System.in);
  3. ^
  4. symbol: class InputStreamReader
  5. location: class NATO
  6. D:\Desktop\NATO.java:43: error: cannot find symbol
  7. InputStreamReader isr = new InputStreamReader(System.in);
  8. ^
  9. symbol: class InputStreamReader
  10. location: class NATO
  11. D:\Desktop\NATO.java:44: error: cannot find symbol
  12. BufferedReader br = new BufferedReader(isr);
  13. ^
  14. symbol: class BufferedReader
  15. location: class NATO
  16. D:\Desktop\NATO.java:44: error: cannot find symbol
  17. BufferedReader br = new BufferedReader(isr);
  18. ^
  19. symbol: class BufferedReader
  20. location: class NATO
  21. D:\Desktop\NATO.java:48: error: cannot find symbol
  22. catch (IOEXCEPTION ioe) {
  23. ^
  24. symbol: class IOEXCEPTION
  25. location: class NATO
  26. D:\Desktop\NATO.java:57: error: cannot find symbol
  27. int rnd = Random().nextInt(args.length);
  28. ^
  29. symbol: method Random()
  30. location: class NATO
  31. D:\Desktop\NATO.java:61: error: cannot find symbol
  32. String answerIncludingSpaces = System.in.nextLine;
  33. ^
  34. symbol: variable nextLine
  35. location: variable in of type InputStream
  36. D:\Desktop\NATO.java:63: error: char cannot be dereferenced
  37. String answer = answerUncapitalized.charAt(1).toUpperCase;
  38. ^
  39. D:\Desktop\NATO.java:66: error: variable numberCompleted is already defined in method main(String[])
  40. float numberCompleted = numberCompleted + 1;
  41. ^
  42. D:\Desktop\NATO.java:70: error: variable numberCorrect is already defined in method main(String[])
  43. float numberCorrect = numberCorrect + 1;
  44. ^
  45. D:\Desktop\NATO.java:79: error: variable finalScore is already defined in method main(String[])
  46. float finalScore = (numberCorrect / numberCompleted);
  47. ^
  48. D:\Desktop\NATO.java:83: error: cannot find symbol
  49. if(System.nextLine.toUpperCase == "Y") {
  50. ^
  51. symbol: variable nextLine
  52. location: class System
  53. D:\Desktop\NATO.java:88: error: package system does not exist
  54. system.out.println("Thank you for playing!");
  55. ^
  56. 13 errors
  57. [Finished in 0.7s]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement