News
The Java Shell assumes that age is a variable, but it doesn’t know its type. You would have to include a type; for example, see what happens if you enter int age. How to write compound expressions ...
So far, I’ve discussed local variables, which hold temporary data that you use within a method. You declare local variables inside methods, and you can access them only from within those methods ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results