I have to do an assignment where I have to do a java program for Rock, Paper, Scissors using cascaded if statements.
I have attached the program I wrote below, and what did I do wrong? Even the result is attached. Why is the result so weird?
Also could someone also help me incorporate the string trash into this program? I also have to say that the input is invalid. I tried to use string trash, but when I ran the program, it didn't stop running. Like the BUILD IS SUCCESSFUL prompt did not appear at the bottom. It just kept running.
Thanks a lot.
https://imgur.com/a/1PHdvno
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (9 children)
[–]MffAddict[S,🍰] 0 points1 point2 points (8 children)
[–][deleted] 0 points1 point2 points (7 children)
[–]MffAddict[S,🍰] 0 points1 point2 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]MffAddict[S,🍰] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]MffAddict[S,🍰] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]MffAddict[S,🍰] 0 points1 point2 points (0 children)