There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
christian loran wrote:...this was the error message!
C:\Users\christian\Desktop\document2.java:35: yes is already defined in main(java.lang.String[])
int yes;
^
...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
christian loran wrote:if yes and no are bad names for the variables, what names should I choose? Thank you!
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
christian loran wrote:If anyone can modify my code to make it properly loop that would be a huge help!
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
snakes are really good at eating slugs. And you wouldn't think it, but so are tiny ads:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|