Invalid declaration of variables

Report a typo

Given two variables a and b with invalid declarations. Add a type to them.

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);
}
}
___

Create a free account to access the full topic