public String[] generate(String[] results) {
		List<Country> countries = new ArrayList<>();
		for (int i = 0; i < results.length; i++) {
			String[] result = results[i].split(" ");
			boolean a = false, b = false, c = false;
			for (int j = 0; j < countries.size(); j++) {
				Country country = countries.get(j);

				if (country.equals(result[0])) {
					country.gold++;
					a = true;
				}
				if (country.equals(result[1])) {
					country.silver++;
					b = true;
				}
				if (country.equals(result[2])) {
					country.bronze++;
					c = true;
				}
			}
			if (!a) {
				countries.add(new Country(result[0]));
				countries.get(countries.size() - 1).gold++;
			}
			if (!b) {
				countries.add(new Country(result[1]));
				countries.get(countries.size() - 1).silver++;
			}
			if (!c) {
				countries.add(new Country(result[2]));
				countries.get(countries.size() - 1).bronze++;
			}
		}
		// bubbleSortList(countries);
		// selectionSort(countries);
		// insertionSort(countries);

		Collections.sort(countries);
		String[] medalTable = new String[countries.size()];
		for (int i = 0; i < medalTable.length; i++) {
			medalTable[i] = countries.get(i).toString();
		}
		return medalTable;
	}