Java Tutorial


class  MakeDir
    public static void main(String[] args) 
         String dirname=\"e:/Java Work/FileHandling/TermWork/MakeDir/a/b/\";
         File f = new File(dirname);

         if (f.mkdir())
              System.out.println(\"Directory is Created\");

         if (f.mkdirs())
             System.out.println(\"Directories are Created\");


    Related Post:
  1. Word list program that reads a text file and makes an alphabetical list of all the words in that file. The list of words is output to another file

  2. Program to represent a bank account

  3. Define an array of ten String elements each containing an arbitrary string of the form “month/day/year”

  4. An applet program to add two numbers where data is entered in TextField

  5. Program to declare, initialize and print an array of characters

  6. Program to delete mth element from an input string

  7. Program of FTP client and server

  8. Program that accepts a shopping list of items from the command line and stores them in a vector. Also provide facility to perform operation

  9. Program to show the use of the Continue Statement

  10. GUI application in java, which enter the details of a student and on the submit display the details of the student

  11. Program to display following things on the client machine a)date and time of the server machine b)date and time of the client machine and difference

  12. Program that demonstrates type casting

  13. Program to show an example of Copying i.e. Clonning Objects

  14. Program to show an example of using a Non-Static Nested Class

  15. Program of concatenating and Buffering files

  16. RMI based application for login validation based on data saved in text file stored on the server and will display appropriate message to the client..

  17. Corba program of Count Client Applet, IDL,Server, Client

  18. Program to show the use of Bitwise Operator (|) OR

  19. Program of bubble sort

  20. Program to declare, initialize and print an array of integers

Didn't find what you were looking for? Find more on Program to make directory