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
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |