//       CS210 - Algorithms and Data Structures I
//            Department of Computer Science
//       National University of Ireland, Maynooth
//
//           Solutions to Self-help Exercises
//                     Tom Naughton
//                    November 2000
//
//-------------------------------------------------------
//http://www.cs.may.ie/tnaughton/cs210/cs210selfhelp.html
//=======================================================
class ExerciseII6 {

  public static void fn(int list[]) {
    /* This function prints out the contents of list[].
    */
    int count;

    count = 0;
    while (count < list.length) {
      System.out.println(list[count]);
      count++;
    }
  }

  public static void main(String args[]) {
    int a[] = {1, 5, 6, 4, 3};
    fn(a);
  }
}

