Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    12
    Views
    1,797

    Re: Errors with beginning jOptionPane code

    Move the definitions of the variables so they are in scope. That usually means putting the definitions within the same set of {}s.
    The first set of {}s is for a class.
    The next set of {}s is for...
  2. Replies
    12
    Views
    1,797

    Re: Errors with beginning jOptionPane code

    your problem is with the scope of the definitions of the variables. The definition is NOT known outside of the enclosing {}s.


    { // begin scope for x
    int x = 20;
    } // end scope for x
    //...
  3. Replies
    12
    Views
    1,797

    Re: Errors with beginning jOptionPane code

    That's a problem with some IDEs. The don't give you error messages that can be copied to a forum where you are asking for help. Until you can get a listing of the compiler's error mesages, you'll...
  4. Replies
    12
    Views
    1,797

    Re: Errors with beginning jOptionPane code

    You need to post the full text of the compiler's error message that shows the line where the error occurred and the symbol that is not found.

    Here is a sample:


    TestSorts.java:138: cannot...
  5. Replies
    12
    Views
    1,797

    Re: Errors with beginning jOptionPane code

    When you get errors, you need to copy the full text of the error messages and paste it here so we can see what the errors are.
Results 1 to 5 of 5