In: Computer Science
Write a class called CheckUserName. CheckUserName must have a main method. Your program must ask for a user name. If the name is on the list below (Liam, for example) greet the user saying: welcome back: Liam If the user is an admin (like Benkamin, for example) print: welcome back: Benjamin you have admin privileges Your program must accept upper case or lower case: emacs% java CheckUserName enter a user name: Liam welcome back: Liam emacs% java CheckUserName enter a user name: liam welcome back: liam Here is the list of users: Liam Noah William James Oliver Benjamin admin Elijah Lucas Mason Logan Alexander admin Ethan Jacob Michael Daniel admin Henry Jackson Sebastian
Don't use switch