Need help with simple problem
Code:
String moneyLeftString = jLabel9.getText();
long moneyLeft = Long.parseLong(moneyLeftString);
if(moneyLeft > -1){
jLabel31.setText("You have hit and you recieve" + withString() + " and " + withString());//shows both cards to player
jLabel35.setText("The computer hits and recieves:" + withString());//Add hit and stand logic later..shows one card to player
}
else{
jLabel31.setText("You have lost the game");//Informs the user of their fate
- at the if statement : cannot find class moneyLeft,<identifier> expected
-at the else statement : illegal start of type