public static void main(String[] args)
	{

		String s = "abcdefghijklmnopqrstuvwxyz";
		char[] alphabet = s.toCharArray();

		ArrayList<HashMap<Character, Character>> list = new ArrayList<HashMap<Character, Character>>();
		char[] keys = "gslmrh".toCharArray();
		char[] values = "TAOINS".toCharArray();
		function(keys, values, new HashMap<Character, Character>(), list);

		for (HashMap<Character, Character> mapje : list)
		{
			Character[] output;
			mapje.put('v', 'E');

			output = SubstitutionCipher.encrypt(
					createScanner("as2_2_cipher.txt"), mapje);
			
			for(int i=0; i<output.length;i++)
			{
				if(output[i]!= null)
					System.out.print(output[i]);
				else
					System.out.print('X');
			}
				
			System.out.println();
		}

		/*
		 * for (Character c : output) System.out.print(c); System.out.println();
		 */

		/*
		 * Scanner input = createScanner("as2_2_cipher.txt");
		 * 
		 * HashMap<Character, Integer> map =
		 * SubstitutionCipher.countCharacters(input);
		 * 
		 * for(char c : alphabet) { System.out.println(c+" : "+map.get(c)); }
		 */

	}