The program below does not compile. Which statement correctly describes the problem?
public class Main {
public static void main(String[] args) {
String name = "java";
name.charAt(0) = 'J';
System.out.println(name);
}
}
For example: name = Character.toUpperCase(name.charAt(0)) + name.substring(1);