Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- public class App {
- // Main Function
- public static void main(String[] args){
- // I will have to put double backslashes, because \t ---> New Tab
- File x = new File("C:\\Users\\thoma\\JavaProjects\\BeginnersProject14");
- if(x.exists())
- System.out.println("File " + x.getName() + " exists!");
- else
- System.out.println("File " + x.getName() + "does not exist!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement