Quantcast
Viewing latest article 5
Browse Latest Browse All 6

Answer by squiguy for How to loop a try catch statement?

Instead of using a try catch block, try a do while loop checking if the file exists.

do {

} while ( !file.exists() );

This method is in java.io.File


Viewing latest article 5
Browse Latest Browse All 6

Trending Articles