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. An application that combines several classes and interface

  2. Program which creates an Array of character. Make one function with one argument as a character and that function throw a user defined exception

  3. Corba program to develop a simple calculator with addition, subtraction, multiplication and division capabilities, data collection from client side

  4. Program to print some text on the same line using multiple print statements

  5. Even no or Prime no?????

  6. An applet program to display moving banner

  7. Program to represent a bank account

  8. An applet of displaying simple moving banner

  9. An applet program to draw Polygon Graph with given data

  10. Program to show the use of Comparison operator (==) for comparing Strings

  11. Program of concatenating and Buffering files

  12. Program to declare and initialize Boolean variables and print them on the Standard Output Device

  13. Program to show the use of Conditional (Ternary) Operator

  14. Program of inventory management and demonstrating interactive input and output

  15. Program to show an example of creating a class and using its object

  16. Program to read input from the Standard Input Device

  17. Program using session tracking capability of Servlets, which displays information of current user session by HttpServletRequest object

  18. Program that takes a long sentence and a character from the client and count the occurrence of the character in the sentence at the server side

  19. Program to delete mth element from an input string

  20. RMI application for counting factorial of a given number.

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