public NameGenerator(){
		Scanner scanner;
		random = new Random();
		
		try{
			scanner = new Scanner(this.getClass().getResourceAsStream("/res/vowels.txt"));
		}catch(Exception e){
			e.printStackTrace();
			return;
		}
		
		if(!scanner.nextLine().equals("vowels:")){
			System.out.println("wrong file!");
			return;
		}
		
		ArrayList<String> vowelList = new ArrayList<String>();
		ArrayList<String> consonantList = new ArrayList<String>();
		
		boolean addToVowelList = true;
		while(scanner.hasNext()){
			String line = scanner.next();
			
			if(line.equals("consonants:")){
				addToVowelList = false;
				continue;
			}
			
			if(addToVowelList) vowelList.add(line);
			else consonantList.add(line);
		}
		
		consonants = toArray(consonantList);
		vowels = toArray(vowelList);
	}