I have a string like this format
Number. Subject, Uni Name, Location 2
I want to re-order the format like this one
Number. Uni Name, Subject, Location 2
I can do the operation by this way
int index = Order .indexOf(",");
String newStr =Order .substring(index + 1, Order .length());
But,I think all string have a different name and length, so may be this will not work. So, my question is how can re-order the string format dynamically with a efficient way ?
Question updated