Given two variables a and b with invalid declarations. Add a type to them.
Types and variables
Invalid declaration of variables
Report a typo
Write a program in Java 17
public class Main {
public static void main(String[] args) {
// Add type to these two variables
a = 512343;
b = 3431231;
System.out.println(a + b);
}
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.