We have a class named as Show
.
Can anybody tell me how to convert data which is String into generic type? For example if we have
String sn=null;
and we want to cast it into Show
then how we can do it?
We have a class named as Show
.
Can anybody tell me how to convert data which is String into generic type? For example if we have
String sn=null;
and we want to cast it into Show
then how we can do it?
your question is really very unclear. but if you are talking about converting data in String format to primitive data types then you can use parser. like if you want to convert "9" which is basically a string to int then you can use
int i = Integer.parseInt("9");