Arithmetic java problem


#1

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

Arithmetic.java:4: error: ‘;’ expected
int myNumber 1 * 2;
^
1 error



,,,

#2

Fix:
int myNumber 1 * 2; -> int myNumber = 1 * 2;


#3

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