So I have some code that I am tring to compile and I keep on getting this error:
3SATSolver.java:3: <identifier> expected
Here is the code. Am I simply not seeing something?
import java.util.ArrayList;
public class 3SATSolver {
public static void main (String[] args) {
ArrayList values = new ArrayList<Boolean> ();
for (int i = 0; i < args.length; i++) {
Boolean d = new Boolean (args[i].charAt(0), Integer.parseInt(args[i].substring(1)));
}
}
}
Identifiers can’t start with numerals in Java.