Ask coding questions

← Back to all posts
how do i add a feature where int money is used for betting money

import java.util.Random;
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
System.out.println("Please enter your username...");
Scanner in = new Scanner(;
String Username = in.nextLine();
System.out.println("Welcome " + Username + "!");
int money = 7000;
System.out.println("You Have: $" + money);
System.out.println("Place Your Bet : " + money);



You have an unnecessary semi-colon at the end of line 18. This fork of your program may help you:


@malvoliothegood appreciate the help i couldnt figure out how to convert a string into a integer i will look up this new integer.parseint.


@jascas03 Google is your friend. That's how I found out about Integer.ParseInt.


Here you can read how to implement some useful tricks to betting apps


Sports betting is very exciting and you can make nice money. The main piece of each player's arsenal is to bet on three additional pieces of information, see here fun88 apk . There is a reason why full-time betting, as they are also called, is by far the most popular market where players bet.