Search:

Type: Posts; User: dave_alan

Search: Search took 0.28 seconds.

  1. Replies
    5
    Views
    400

    Re: Two Parallel Arrays

    hi
    A problem your having genarating your random numbers is
    1. your import is not correct try util.Random
    2. You need to do one more thing with your random numbers. Do you know about casting or...
  2. Replies
    3
    Views
    740

    Re: Java code problem?

    hi
    just making sure you imoported the needed class for your scanner.
    import java.util.*;
    this must be at the very top of your code.
    also keyboard.nextdouble();
    you must use capitals on the...
  3. Re: (Beginner's calculator) Additional calculation after first result...

    It seems like a lot of code to comlete your task alright. You could try a few else if statments to get the same results.



    if (symbol.equals("+")) {
    result = first + second;
    } else if...
  4. Replies
    7
    Views
    1,121

    Re: Error message when using JOptionPane

    I guess i was wrong there seems to be something wrong with compiler. What text editor are you using?
    Can you compile any code, or is it just with GUI stuff your having a problem?
  5. Replies
    7
    Views
    1,121

    Re: Error message when using JOptionPane

    Nothing wrong with compiler.
    When using this type of dialog box you need to pass in the message String and also the title String.
    try some thing like:

    JOptionPane.showMessageDialog(null,...
  6. Replies
    3
    Views
    1,243

    Re: if problem with range of numbers

    Try something like this. Read up on your and(&&) and or(||) condisions. You will meet them very often.

    char letter = 'A';

    System.out.println("Enter a value between 9.01 and 10.00 ");
    //read...
Results 1 to 6 of 6