Did you multiply two integers?


#1
public class Arithmetic {
  public static void main(String[] args) {
    int myNumber = 34 + 113;
      System.out.println(myNumber);
    }
}

I am getting an error message. This is the message, is it correct?

Did you multiply two integers? Remember, integers are whole numbers only.


Welcome to our forums! Please Introduce Yourself
#2

Hi the error says.

Did you multiply two integers?
Because you made the sum..

int myNumber = 34 + 113;