import java.io.*;
import java.util.*;

/**
 * The Siblings class reads in a file with Sibling ages and finds 
 *   the average age of the siblings
 * 
 * @author Kathryn McKinley
 * @version March 2007
 */
public class Siblings
{
	// Array of ages
	private int[][] ages;
	private int average;

	/**
	 * Constructor for objects of class Siblings
	 */
	public Siblings()
	{
		// Centinel value indicating we have not computed the age yet
		average = -1;
	}

	/**
	 * Compute average of ages
	 * 
	 */
	public int averageAge()
	{
	    return 0;
	}
	/**
	 * Reads in the ages from a file
	 */
	public void readAges(Scanner sFile)
	{
	    // What file format do we want?
	    
	}
	/**
	 * Print out all the ages we read in
	 */ 
	public void printAges()
	{
	    System.out.println("The ages of siblings of 305j student are:");
	    
	}
		
    public static void main(String[] args) throws Exception
    {
        Scanner stdin = new Scanner (System.in);
        Scanner sFile = null;
        File f = null;
        
        while (sFile == null) {
            try {
                System.out.print("Enter the input file name: ");
                f = new File(stdin.nextLine());
                sFile = new Scanner(f);
            } catch (FileNotFoundException e) {
                System.out.println("File not found.");   
            }
        }
        Siblings sibs = new Siblings();
        sibs.readAges(sFile);
        sibs.printAges();
    }
}
