java identifier expected

Java
public class MyClass {
    public static void main(String[] args) {
        UserInput input = new UserInput();
        input.name();
    }
}
Source

Also in Java: