public static void main(String[] args) {
	
		int hashSize = 0;
		
		if (args.length == 0) {
			throw new IllegalArgumentException("Syntax: CountsWords Datei [hashSize][RSHash|JSHash]");
		}
		
		if (args.length >= 1) file = args[0];
		if (args.length >= 2) {
			try {
				hashSize = Integer.parseInt(args[1]);
			} catch (NumberFormatException ex) {
				hashMethod = args[1];
				hashSize = 10;
			}
		}
		
		if ( args.length == 3 ) 		hashMethod = args[2];	
		if ( hashMethod.equals("") ) 	hashMethod = "RSHash";
		
		if (hashSize > 0) 				hashTable = new HashTable(hashSize, hashMethod);
		else throw new NumberFormatException("Die Hashsize muss größer als 0 sein !");
		
		try {
			hashTable = readFileAndHash(file, hashSize, hashMethod);
			if(hashTable != null){
				printStatistics(hashTable);
			}
			System.out.println("Anzahl der Kollisionen: " + hashTable.numberOfCollisions());
		} catch (Exception e) {
			System.out.println("Syntax: CountsWords Datei [hashSize][RSHash|JSHash]");
		}

	}