-
-
Save sonAndrew/28807ffc1e5993b9d4b7faf272551b80 to your computer and use it in GitHub Desktop.
This method is used to get user name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static String getUserName(Scanner borrowedInput) | |
| { | |
| // LOCAL VARIABLES | |
| String localUserName = ""; | |
| // FIRST NAME | |
| System.out.println("\nWhat is your first name?"); | |
| localUserName = borrowedInput.nextLine(); | |
| return localUserName; | |
| } // END - getUserName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment