import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner; 

public class Poker {
	private static final int LENGTH = 5; 
	public static void main(String[] args) {
		
		ArrayList<Integer> hand = new ArrayList<Integer>(LENGTH);
		Scanner inp = new Scanner(System.in);  
		System.out.println("Enter a five numeric cards, no face cards. Use 2 - 9.");
		
		for(int i = 0; i < LENGTH; i++) {
			System.out.println("Card " + (i + 1) + ": ");
			int card = inp.nextInt(); 
			hand.add(i, card); 
			if(hand.get(i) < 2 || hand.get(i) > 9) {
				System.out.println("Not a valid number. Enter a different card value.");
				i--;
			}
		}
		System.out.println(); 
		
		Collections.sort(hand);	 
	}
			

	public static int checkNum(ArrayList<Integer> hand, int num) {

	}
	
	public static boolean containsPair(ArrayList<Integer> hand) {

	}
	
	public static boolean containsTwoPair(ArrayList<Integer> hand) {

	}
	
	public static boolean containsThreeOfaKind(ArrayList<Integer> hand) {

	}
	
	public static boolean containsStraight(ArrayList<Integer> hand) {

	}
	
	public static boolean containsFullHouse(ArrayList<Integer> hand) {

	}
	
	public static boolean containsFourOfaKind(ArrayList<Integer> hand) {

	}
}
