My original mentality was to just define the String as both "Bob" and "bob" (example). I wasn't aware that there was an equalsIgnoreCase function. That works much better for what I'm looking for.
Type: Posts; User: bgroenks96
My original mentality was to just define the String as both "Bob" and "bob" (example). I wasn't aware that there was an equalsIgnoreCase function. That works much better for what I'm looking for.
Thank you! That is exactly what I needed!
I simply want to define one String variable as multiple things.
For instance: String bigString = "WooHoo" and "HooWoo"
Specifically what I'm looking for is this: String side = "One" AND "one"...
How do you define a single String variable as multiple things?
i.e.
String name = "Bob" and "Frank"
I have tried the following:
String name = "Bob", "Frank";
String name = "Bob" || "Frank";...