public static void main(String[] args) {
		
		//Creates the return value for the highest domino in the series.
		String highestDomino = null;
		
		//Creates the placeholder for the weight of the highest domino.
		int highestValue = 0;
		
		//Creates the return value for the lowest domino in the series.
		String lowestDomino = null;
		
		//Creates the placeholder for the weight of the lowest domino.
		int lowestValue = 13;
		
		//Counter for the number of blanks.
		int blanksCount = 0;
		
		//Counter for the number of doubles.
		int doublesCount = 0;
		
		//Generates the dominos.
		System.out.println("20 Randomly generated dominos:");
		for (int count = 0; count < 20; count++) {
			Domino domino = new Domino();
			
			//Checks to see if the new domino is higher, and if so 
			//sets it as the new highest.
			if (domino.getWeight() > highestValue) {
				highestValue = domino.getWeight();
				highestDomino = domino.toString();
			}
			
			//Checks to see if the new domino is lower, and if so 
			//sets it as the new lowest.
			if (domino.getWeight() < lowestValue) {
				lowestValue = domino.getWeight();
				lowestDomino = domino.toString();
			}
			
			//Prints the domino.
			System.out.println(domino.toString());
			
			//Counts if the domino is blank.
			if (domino.isBlank()) {
				blanksCount++;
			}
			
			//Counts of the domino is a double.
			if (domino.isDouble()) {
				doublesCount++;
			}
		}
		
		//Returns the asked for information.
		System.out.println("Heaviest domino with higher rank: " + highestDomino);
		System.out.println("Lightest domino with lowest rank: " + lowestDomino);
		System.out.println("Number of doubles: " + doublesCount);
		System.out.println("Number of blanks: " + blanksCount);
	}