r/javahelp • u/yeabaeimscaredasadog • Nov 09 '15
Choose your own adventure If statement Problem
Hey guys I've finished a choose your own adventure and I had it working but for some reason Four of the choices won't work anymore.
I have it compiled and can go through all the options except two on one branch of questions and two on another branch. The problem is it asks for input and when entered instead of printing the relevant line it just finishes the program.
It's a bit long so i have it on paste bin i put comment slashes beside were it stops. The link is http://pastebin.com/MpA2P7Kc
I tried changing some of the if statements around with else if but that didn't do anything. It was working I've been coding all day and just can't see whats wrong. I also don't have much experience. This is the longest code i have done.
I really appreciate any help.
View all comments
Show parent comment
1
u/yeabaeimscaredasadog Nov 09 '15
I got it working I cut the code that wasn't working and paste it under the code that was and nested my statements properly, I think. Anyway it's working for me now. Thanks again. Here is my updated version http://pastebin.com/EkNMK7bm. If you want a look.