Scanner

//Providing option to request for a user to input information while using the program i.e. a form



import java.util.Scanner; 


Scanner sc = new Scanner(System.in);

       System.out.println("Enter username:");

       String username = sc.nextLine();