public static void main(String[]args)
    {
        try 
        {
            //new ClassFolder();
            System.out.println(ClassFolder.getAbsolutePath());
            File f = new File("C:\\Users\\thapaliya\\Desktop\\codes");
            System.out.println("Abs File Path: "+f.getAbsolutePath());
            System.out.println("File Name: "+f.getName());
            System.out.println("File path: "+f.getParent());
            String [] files ;
            files = f.list();
            for (int i=0; i< files.length; i++) 
            {
                System.out.print(files[i]+" ");
                if(i==10) System.out.println();
            }
            
            String file ="file.java";
            file = file.replace(".java", " ");
            file = file.trim();
            System.out.println("\nfile="+file);
            System.out.println(file.length()); 
            
        } 
        catch (Exception ex) 
        {
            ex.printStackTrace();
        }
    
    }