Search:

Type: Posts; User: Norm

Search: Search took 0.18 seconds.

  1. Re: What's wrong with my code?? (it said cannot resolve symbol)

    Something like this:
    BuffferedReader br = new BufferedReader(new WrapperClass(System.in));

    You need to read the API doc to find what is the correct class for WrapperClass.
  2. Re: What's wrong with my code?? (it said cannot resolve symbol)

    Start with System.in. Find a wrapper class to wrap it and that can be wrapped in the BufferedReader class.
  3. Re: What's wrong with my code?? (it said cannot resolve symbol)

    @programmingtutorials The code as posted compiles with JDKs 1.5 and later.
    To see the OPs problem, try compiling the posted code with JDK 1.4
  4. Re: What's wrong with my code?? (it said cannot resolve symbol)

    Either rewrite the code to use classes available in version 1.4
    or download and install a newer version of the JDK.
  5. Re: What's wrong with my code?? (it said cannot resolve symbol)

    What version of the JDK are you using? The Scanner class came with version 1.5
  6. Re: What's wrong with my code?? (it said cannot resolve symbol)

    Please post the full text of the compiler's error message.
  7. Re: What's wrong with my code?? (it said cannot resolve symbol)

    Please copy full text of error message and paste it here. Here is a sample:


    TestSorts.java:138: cannot find symbol
    symbol : variable var
    location: class TestSorts
    var = 2;
    ...
  8. Re: What's wrong with my code?? (it said cannot resolve symbol)

    The OP has not said what is wrong with his code. What symbol is the problem?
    Don't we need that to be able to make suggestions?
  9. Re: What's wrong with my code?? (it said cannot resolve symbol)

    Please post the full text here so parts can be selected for searches etc.
    To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' -...
  10. Re: What's wrong with my code?? (it said cannot resolve symbol)

    Please post the full text of the error message.
Results 1 to 10 of 10