Search:

Type: Posts; User: jmd

Search: Search took 0.09 seconds.

  1. Replies
    17
    Views
    1,795

    Re: Help with simple math game coding

    yes i used the math.floor as jake recommended and it worked great

    i have a question about checking the inputted from user
    i want it to check if the user input a integer set in a range, and not...
  2. Replies
    17
    Views
    1,795

    Re: Help with simple math game coding

    i did the math library approach since its more efficient thx though
  3. Replies
    17
    Views
    1,795

    Re: Help with simple math game coding

    i executed many times and all of them came back the same

    how would i define the Random class object outside of the method as a class variable?
  4. Replies
    17
    Views
    1,795

    Re: Help with simple math game coding

    here was my original example code


    import java.util.Random;

    // The "SimpleRandom" class.
    public class SimpleRandom
    {

    public static void main (String[] args)
  5. Replies
    17
    Views
    1,795

    Re: Help with simple math game coding

    i posted a reply with sample and ss but need mod confirm

    not sure why but i'm using Ready to Program v1.7.1



    i will give this a try thanks
  6. Replies
    17
    Views
    1,795

    Re: Help with simple math game coding

    they return the same set of numbers for both addsumnumber1 and addsumnumber2, how can i make the method to return 2 different value for each?
  7. Replies
    17
    Views
    1,795

    Help with simple math game coding

    hi java programmers,

    i have a simple question about my math game,
    i need to randomize 2 numbers using 1 method

    this is the method i have to randomize the number from 0-20


    public static...
Results 1 to 7 of 8