/** * Write a description of class nameinput here. * * @author (your name) * @version (a version number or a date) */ import java.util.*; public class Nameinput { public void name(){ Scanner input = new Scanner(System.in); System.out.println("Is this Alice and Bob?"); String a = input.next(); if(a.equals("Alice")||(a.equals("Bob"))){ System.out.println("hello!"); }else{ System.out.println("Sorry, looking for Alice or Bob"); } } }