I am currently using String.split("")as follows:
String[] tmp = props.get(i).getFullName().split("\\.");
String name = "";
for(int j = 1; j < tmp.length; j++){
if(j > 1){
name = name + "." + tmp[j];
}
else
name = name + tmp[j];
}
my String is in format first.second.third...n-1.n, and all I really need to do is get rid offirst.
source
share