Skip to content
← Back to Community
how do i add a feature where int money is used for betting money
Profile icon
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);

in.close(); } public static int rollDice1() { Random random = new Random(); int answer = random.nextInt(6); return answer; }

}

Voters
Profile icon
jascas03
Comments
hotnewtop
Profile icon
[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

Profile icon
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.

Profile icon
[deleted]

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

Profile icon
AriaStark1

Hi all. You know, I've loved watching soccer since I was a kid. Recently I decided to try to make some money on it and even sometimes share my best betting tips with my close friends. For example, the more detailed and thorough the pre-match analysis of a match, the better the chances of correctly predicting its outcome. Statistics and analysis allow more competent betting not only on the outcome of the event, but also on the various nuances of the game - the number of goals, the exact result, etc. I have learned all this thanks to Link mightytips website, and it is my little secret that allows me to earn some money from my predictions. I think it will be useful if you are interested in betting.

Profile icon
IvorConner

very interesting cricket game free download at https://techtodown.com/world-cricket-championship-3-wcc3-mod-apk

Profile icon
MarkusVincenti

One of the most popular entertainment that people enjoy these days is gambling. The industry has provided many people with the opportunity to earn money from sports https://www.canadiansportsbetting.org/betting-sites/pinnacle-review/ you can find various ways to treat yourself to betting

Profile icon
BirenRamanathan

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

Profile icon
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.