Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- /**
- * Created by jordandevaney on 2/18/17.
- */
- public class ImputNameAndPassword {
- public static void main(String[] args) {
- System.out.println("Enter your username: ");
- Scanner scanner = new Scanner(System.in);
- String userinput = scanner.nextLine();
- System.out.println("Your username is " + userinput);
- System.out.println("Enter your password: ");
- String password = scanner.nextLine();
- System.out.println("Your password is " + password);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement