*I have the below enum:*
public enum Type {
TYPE_ONE(event/one);
TYPE_TWO(event/two);
private Type(String mType){
this.mType = mType;
}
private final String mType;
public String getType(){return mType;}
}
*I am trying to compare in Switch/Case:*
switch
Can I do a switch(String), case (compare with other string) and how?
I am trying to compare string results and perform actions...
Thanks,
Abhi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers
2 matches
Mail list logo