/** * Created by iyasuwatts on 10/17/17. */ import java.util.Scanner; public class Main { public static void main(){ } public static void Welcome(){ System.out.println("Please enter your name"); Scanner scanner = new Scanner(System.in); String userInput = scanner.next(); if(userInput.equalsIgnoreCase("alice") || userInput.equalsIgnoreCase("bob")) { System.out.println("Welcome " + userInput); } } }