Search:

Type: Posts; User: javapenguin

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    2,186

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

    System.out.print("Enter something like 8 + 33 + 1,345 +137 : ");

    I'm not sure if the int thing will recognize commas.
  2. Replies
    7
    Views
    2,186

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

    The Scanner class can't add for you.

    To take the values you have in a String and make them into numbers, you use the wrapper classes.

    Integer.parseInt(String str);
    Double.parseDouble(String...
Results 1 to 2 of 2