public static void main(String[] args) {
		try {
			File file = new File("C:\\Users\\Collin\\Downloads\\names.txt");
			Scanner readFile = new Scanner(file);
			String namesList = readFile.nextLine();
			String[] names;
			 names = namesList.replace("\"","").split(",");
			System.out.println("Array Created: " + names.length);
			int count = 0;
			while (count != names.length-1) {
				if (names[count+1].compareTo(names[count]) > 0) {
					count++;
				}
				else {
					String tempName = names[count];
					names[count] = names[count+1]; 
					names[count+1] = tempName;
					if (count != 0) { 
						count -= 1; 
					}
				}
			}
			System.out.println("Array Sorted");
			int letter = 0;
			int value = 0;
			int answer = 0;
			for (count = 0; count < (names.length); count++) {
				while (letter < names[count].length()) {
					value += ((int)names[count].toLowerCase().charAt(letter)-96);
					letter++;
				}
				answer += value*(count +1);
				letter = 0;
				value = 0;
			}
			System.out.println(answer);
		} 
		catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	}