Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.io.File;
- public class Main {
- public static void main(String[] args) throws IOException {
- File file=new File("pom.txt");
- //kreiranje nov direktorium
- file.mkdir();
- file.mkdirs(); //rekurziven povik
- file.renameTo(new File("pom"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement