Jump to content

mattl103

Registered
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About mattl103

  • Rank
    New Botter

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello i'm a new Java coder and im starting to make one of my firsts "cool" Java projects. It's a flower game program. It works as follows: •You first choose one number which would equal a flower colour, for example number 1 would equal red. •You then choose an ammount to bet. •A random color pops on the console. If you guessed it then your bet multiplies by 2. Else, you loose. I would really appriciate if some one would help me create a "Wallet System". You would basically start with a default wallet. If you win, your bet multiplies by 2 as the program already does, but your wallet is n
  2. Thanks! Do you know any website were i could learn those convenctions? Like the letter.equals
  3. //Could some one please tell me why this calculator isn't working? import java.util.Scanner; public class Calcu { public static void main( String[] args ) { Scanner mati = new Scanner(System.in); System.out.println("This program adds up or substracts two numbers"); System.out.println("Enter an operator"); String letter = mati.next(); //WAITS FOR THE PHRASE ADD OR SUBSTRACT System.out.println("Enter your first number"); int userNumberone = mati.nextInt(); // Get's first Number System.out.println("Enter your second number"); int userNumbertwo = mat
×
×
  • Create New...