error: <identifier> expected public void interface(){ code example
Example: java identifier expected
public class MyClass {
public static void main(String[] args) {
UserInput input = new UserInput();
input.name();
}
}
public class MyClass {
public static void main(String[] args) {
UserInput input = new UserInput();
input.name();
}
}