import java.util.*;
import java.io.*;
public class StudyGuide {
/* Given an array of ints, return true if 6 appears as either the first or last element in the array. The array will be length 1 or more. */
public boolean firstLast6(int[] nums) {
int last = nums.length - 1;
if ((nums[last] == 6) || (nums[0] == 6)) {
return true;
}
return false;
}
}