Near-Reality RSPS - Runescape Private Server
Forums

Cups

Members
  • Content count

    23
  • Joined

  • Last visited

4 Followers

About Cups

  • Rank
    Junior Member
  • Birthday

Recent Profile Visitors

361 profile views
  1. java

    while (betMoney > money); When it reaches this, you're not actually doing anything, as the semicolon terminates the statement. You're then creating a scoped block with your braces rather than defining it as the loop body, and so the block always gets executed. Swap the loop to look like this (note how I removed the semicolon at the loop declaration): while (betMoney > money) { System.out.println("you dont have that much money! you have: $" + money + ". please enter your bet..."); betMoney = in.nextInt(); }
Contains New Posts   Forum Contains New Posts
Contains No New Posts   Forum Contains No New Posts