hai everyone...
i need your help..
i'm using a simple method to rename a bunch of images in a folder order by its name (eg: A001.jpg,B001.j pg,C001.jpg). Im using the renameTo method, but it has a problem. It does not change the name of the images.
Here is my code:
for (int a = 0; a<i;a++){
if (!qAnswers[a].equals(answerO ptionAlphaArray[a])){
if (qAnsS[a] != ""){
File currentAnswerFi le1 = new File(filePath, ""+qAnswers[a] +""+qID+"."+cur rentAnswerForma t+"");
File currentAnswerFi le3 = new File(filePath, ""+answerOption AlphaArray[a]+""+qID+"."+cur rentAnswerForma t+"");
currentAnswerFi le3.delete(); currentAnswerFi le1.renameTo(cu rrentAnswerFile 3);
}
}
}
i need your help..
i'm using a simple method to rename a bunch of images in a folder order by its name (eg: A001.jpg,B001.j pg,C001.jpg). Im using the renameTo method, but it has a problem. It does not change the name of the images.
Here is my code:
for (int a = 0; a<i;a++){
if (!qAnswers[a].equals(answerO ptionAlphaArray[a])){
if (qAnsS[a] != ""){
File currentAnswerFi le1 = new File(filePath, ""+qAnswers[a] +""+qID+"."+cur rentAnswerForma t+"");
File currentAnswerFi le3 = new File(filePath, ""+answerOption AlphaArray[a]+""+qID+"."+cur rentAnswerForma t+"");
currentAnswerFi le3.delete(); currentAnswerFi le1.renameTo(cu rrentAnswerFile 3);
}
}
}