I am working on a java assignment for class. Very basic but I just starting to learn to program and this is my first assignment. The assignment is to write a Java program that asks for your name and then greet you like “hello {name}” in java and I'm using online IDE- Browxy
This is my attempt and reads errors every time I run it.
code:
import java.util.Scanner;
class usersName {
public static void main(String[] args) {
String usersName;
System.out.print("Please enter your name: ");
usersName = java.util.Scanner;
System.out.println("Hello, " + usersName! ");
}
}