Problem 8/12 Not sure what it's asking


#1


https://www.codecademy.com/courses/learn-java/lessons/introduction-to-java/exercises/math-1?action=resume

It keeps saying "Did you multiply two integers? Remember, integers are whole numbers only." Am I doing it wrong?


public class Arithmetic {
    public static void main(String[] args) {

        int myNumber = 1 + 2;
        System.out.println(myNumber);

    }
}


#2

Product is a result of multiplication (*), not of addition (+).


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.