Problem 8/12 Not sure what it's asking


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;



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


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