lundi 20 avril 2015

Java allow Upper and Lower cases

Using java.util.Scanner; I want the console to allow the users to input from upper and lower cases. For example:

if (user.equals("test") {
    System.out.println("hello");
}

But I want the console to accept all type of cases, so the user can input like TEST and maybe TeSt and the console would see that as "test"

Aucun commentaire:

Enregistrer un commentaire