There's an error regarding the scanner and i'm honestly not sure how to make it work i'm using javac as a compiler, please help me solve this issue, ive been trying for hours
import java.util.*;
public class testing
{
public static void main(String[] args)
{
String forename;
String surname;
String address;
Scanner scanner = new Scanner(system.in);
System.out.println( "Enter forename" );
System.out.println( "Enter surname" );
System.out.println( "Enter address" );
forename = scanner.nextLine();
surname = scanner.nextLine();
address = scanner.nextLine();
System.out.println( "Name is "+forename);
System.out.println( "Name is "+surname);
System.out.println( "address is "+address);
}
}