public static void main ( String [] args ) {
	String [] data = null;
	char c1 = '"';
	char c2 = ',';
	String  sep = Character.toString(c1) + Character.toString(c2) + Character.toString(c1);
	String cao = "";
	
	try {
	    File file = new File("/Users/zenith/Desktop/Euler/words.txt");
	    if ( file.isFile() && file.exists() ) {
		InputStreamReader read = new InputStreamReader(new FileInputStream(file));
		BufferedReader bReader = new BufferedReader(read);
		String txt = null;
		while (( txt=bReader.readLine())!=null ) {
		    data = txt.split(sep);
		}
		read.close();
	    }
	}
	catch ( Exception e ) {
	    System.out.println("error!");
	}	

	triangleNumber = new int [10000];

	for ( int i=0; i<10000; i++ ) {
	    triangleNumber[i] = i*(i+1)/2;
	}
	
	int counter = 0;	
	for ( int i=0; i<data.length; i++ ) {
	    if ( isTriangle(value(data[i])) && !data[i].equals("") ) {
		counter++;
	    }
	}

	System.out.println("number of triangle numbers = "+counter);
	
    }