Intended solution:
class A {
public A() {
// The access restriction is on System.getProperty(String), not System.getProperties().
// It's an irk of Java, but is consistent through its history, and is clearly documented as such
int a = Integer.parseInt(System.getProperties().get("a"));
int b = Integer.parseInt(System.getProperties().get("b"));
System.out.println(a+b);
}
}
Input method: command line arguments