Help on Java Input Case Insensitivity
Thanks for reading my post.
I need help with a project and i have a sample piece of the code pasted below.
public String getGet (String want) {
if (want.equals("Animal"))
return "Dog";
if (want.equals("Candy"))
return "cookie";........
I have a bunch of tests to run this as a junit test. However, I need help formatting this to allow my input to be case insensitive.
ex. If i input "Animal" or "aNIMal" or "animal" or "AnImAl" I need to retrieve the associated output of "dog" no matter what letter is capital or lower case
Thanks!!!