+ 1
how do you fill out this equation in between the parenthesis
int x = 2; int y = 4; int result = x + y; System.out.println( );
1 Answer
+ 9
This depends entirely on what you want to print.
Though, I assume you just want to print result.
In that case:
System.out.println(result);
This prints the value of the variable 'result'.
'result' is x + y, which is 4 + 2, which is 6.
So, 6 will be printed.