+ 1

Where is the error?

public class Program { public static void main(String[] args) { int sum1 = 50 + 10; int Result = sum1; System.out.printIn("Result"); } }

18th Feb 2020, 8:44 PM
Leonardo Perez
Leonardo Perez - avatar
1 Resposta
+ 1
The System.out.println has a capital i in it, which should be changed to a lowercase L. If what you are attempting is to display the contents of the integer variable called Result, you should exclude the double quotation marks around it in the printing method. Right now, you are printing a *string* "Result". It should be: System.out.println(Result); to print out a variable.
28th Dec 2020, 4:16 PM
Maru
Maru - avatar