Search:

Type: Posts; User: Norm

Search: Search took 0.28 seconds.

  1. Replies
    8
    Views
    1,092

    Re: Problem with calcylator.

    Read the API doc for the Scanner class to find a method that reads a String.
    Java Platform SE 7
  2. Replies
    8
    Views
    1,092

    Re: Problem with calcylator.

    Did you change the code to read the arithmetic operators as Strings and not as numbers?
  3. Replies
    8
    Views
    1,092

    Re: Problem with calcylator.

    if (unit = +) {
    Two things wrong with the syntax here:
    = is the assignment operator, == is for testing equality
    + is the addition operator. If you wanted a String, enclose it in "s like this: "+"...
  4. Replies
    8
    Views
    1,092

    Re: Problem with calcylator.

    Please copy the full text of the error messages and paste it here.

    Please edit your post and wrap your code with


    <YOUR CODE HERE>

    to get highlighting and preserve formatting.
Results 1 to 4 of 4