Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Greeting{
- public static void main(String[] args){
- Scanner input = new Scanner(System.in);
- String line;
- do{
- System.out.println("Type your name: ");
- line = input.nextLine();
- }
- while (line != May);
- System.out.println("Nice to meet you, " + line);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement