public int indexOfByNumber(String str,int number){
int index = 0;
for(int i = 0; i < number; i++){
index = str.indexOf("/");
str = str.replaceFirst("/", "a");
}
return index;
}
int index = 0;
for(int i = 0; i < number; i++){
index = str.indexOf("/");
str = str.replaceFirst("/", "a");
}
return index;
}