Ask coding questions

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

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(System.in);
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);

}

Voters
jascas03
Comments
hotnewtop
[deleted]

You have an unnecessary semi-colon at the end of line 18. This fork of your program may help you: https://repl.it/@malvoliothegood/Roll-Dice-1

jascas03

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

[deleted]

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

BirenRamanathan

Here you can read how to implement some useful tricks to betting apps
https://live-score.top/cricket-betting-apps/

MarkWoloshin

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.