Search:

Type: Posts; User: JakeM1130

Search: Search took 0.26 seconds.

  1. Re: Using FOR and WHILE loops to find average (DUE TONIGHT)

    I included tags in the parts of the code I altered that explain it.
  2. Re: Using FOR and WHILE loops to find average (DUE TONIGHT)

    I noted the couple tweaks that had to be made


    PrintWriter prw = new PrintWriter("outfile5B.txt");
    Scanner kb = new Scanner(System.in);

    String input;
    int num, sum = 0, numAmount;...
  3. Replies
    3
    Views
    1,165

    Re: hasNextInt() question

    When you declare the Scanner variable, it automatically begins to read for user input. It will pause at userInput.hasNextInt until it reads input.
    So basically, user input is stored separately from...
  4. Replies
    17
    Views
    557

    Re: Help with simple math game coding

    I'm on Vista and Java 1.6. Note that's not a full code though. In full, it would look something like


    import java.awt.*;
    import java.lang.Math;

    public class RandomNumberGenerator {
    public...
  5. Replies
    17
    Views
    557

    Re: Help with simple math game coding

    I'd recommend just using the math library approach


    import java.lang.Math;

    addsubnumber1 = (int) Math.floor(Math.random()*21);
    addsubnumber2 = (int) Math.floor(Math.random()*21);
  6. Replies
    1
    Views
    318

    Screen overlay a possibility?

    I was wondering if Java has the capability of writing onto a computer's graphics display without opening a window or applet. I.e. - If I wanted to display text on top of my browser while still being...
Results 1 to 6 of 6