My Opera is closing 3rd of March

Java - The path ahead

java path

How to arrange your document

Hope it helps to the IT professionals who wants to arrange and use their documnts.


import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class DocumentCreator {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		String outFile = "htmlFilePath";
		String mainDir = "E:/artist";
		
		DocumentCreator docCreator = new DocumentCreator();
		docCreator.createDocument(mainDir, outFile);
		
		

	}

	private void createDocument(String mainDir, String outFile) {
		File dir = new File(mainDir);
		if(!dir.isDirectory()){
			System.out.println("Invalid dirctoy name");
			System.exit(0);
		}
		
		List dirList = new ArrayList();
		getDirectoryList(dir,dirList);
		for (int i = 0; i < dirList.size(); i++) {
			File f = (File)dirList.get(i);
			System.out.println(""+i+"."+f.getName());
		}
		
	}
	
	public String getFileListAsStringFromDir(File dir){
//		String[] returnStr = dir.list();
//		if (returnStr.length <=0)
//		{
//			String rt = 
//		}
		return null;
	}

	

	private void getDirectoryList(File dir, List fileList) {
		// TODO Auto-generated method stub
		List returnList = null;
		File[] files = dir.listFiles();
		
		for (int i = 0; i < files.length; i++) {
			if(files[i].isDirectory()){
				fileList.add(files[i]);
				getDirectoryList(files[i],fileList);
				
			}
			
		}
		
		
	}

	private void createDocument() {
		// TODO Auto-generated method stub
		
	}

}


How to find whether Java Script is Disabled on the browser

Write a comment

New comments have been disabled for this post.

February 2014
S M T W T F S
January 2014March 2014
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28