Our posts crossed. Check my last post
Type: Posts; User: Norm
Our posts crossed. Check my last post
class Printer {
static int Print() {
Scanner reader = new Scanner(System.in);
System.out.println("Type in the first integer: ");
int num1 = reader.nextInt();
System.out.println("Type...
The sum method returns the sum of the two int values passed to it.
The calling code needs to save the value returned by the sum method in a variable so that it can work with it locally:
int...
[QUOTE]ObjectFunctionality.java:24: error: cannot find symbol[/QUOTE
The compiler can not find a declaration for the variable: sum that is in scope (declared within the same {}s) on line 24.
Where...
Please explain. What happens? If there are error messages, copy the full text and paste it here.