Search:

Type: Posts; User: weezer562

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    2,174

    Re: Easy help but can't figure it out.

    Completely agree with you, but my assignment was to get both addition and subtraction working using scanner methods. I believe its being used to get us accustomed to this. I really appreciate all...
  2. Replies
    7
    Views
    2,174

    Re: Easy help but can't figure it out.

    Fixed that took out the example but in that code if a person enters lets say 20 + 35 + 45 it should work. It has for me.
  3. Replies
    7
    Views
    2,174

    Re: Easy help but can't figure it out.

    It is actually stopping at the + symbol and then adding the nextInt this does work , my problem is adding subtraction to the mix. I have tried adding an If statementwithin the while loop , but with...
  4. Replies
    7
    Views
    2,174

    Easy help but can't figure it out.

    ok I managed to get this working correctly. The code is to take in a string and add the numbers what I am trying to change is to also allow subtraction including checking the first number for a + or...
Results 1 to 4 of 4