1
This recursive method:
public static void percorre(File caminho, String espaço){
if(caminho.isDirectory()){
for (int cta = 1; cta <= nespaço; cta++){
buffer.append(espaço);
}
buffer.append(caminho.getName() + "\n");
nespaço += 1;
percorre(caminho, espaço);
} else if (caminho.isDirectory() != true){
nespaço = 0;
}
}
Gives the following error:
What is going on?
Note: Line 14 is If and 21 is the recursive call.
Thank you so much! It really worked. That was it!!
– Vinícius Novelli