I'm creating a simple game in Netbeans but I've come across a problem, when I've 500 coins and I try to add more, the total coins value will go to -1 therefore I think I need a else if statement in my code to stop and display a error message but I'm not sure how to write it?
Litherz
0
Newbie Poster
Recommended Answers
Jump to Postdon't double post
Your question on StackOverflow
All 3 Replies
stultuske
1,116
Posting Maven
Featured Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.