I have Strings defined like so:
public final static String RED_LARGE = "red-large@";
public final static String TOP_RED_LARGE = "top-red-large@";
public final static String BOTTOM_RED_LARGE = "bottom-red-large@";
The strings are appended with an int during runtime, so that values could be, for example:
These string values are assigned to a class, call it MyClass, via a class member called userString
, so userString
could be any of the above values or some orther value on the int.
What is the best way to determine if userString is a RED_LARGE (ie not TOP_RED_LARGE or BOTTOM_RED_LARGE )?