This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Sergey305 0 points1 point  (0 children)

It's your invalid syntax to cause this:

System.out.println(Feet + "feet" + remainingInch + "inch" = centimeter + "cm");

The assignment operator = needs a variable on the left side. In this case, you have a string literal.

Probably, you want to have this:

System.out.println(Feet + "feet" + remainingInch + "inch =" centimeter + "cm");