Hi All,
I have array of strings and have a need to seprate the variables from numbers. Is there a cleaner way of doing it in
java. I know I can attempt to do an operation on every
string and if operation results in exception that it is a variable otherwise a number.Please suggest a better way.
e.g array[0]= "1" , array[1]= "xyz" , array[2]= "1.9" , array[3]= "abc"
I need array_of_variables[]= {"xyz","abc"};
array_of_numbers[]={"1","1.9"}
Thanks for you suggestions in advance.