import java.util.*; class HW3Q3 { public int position(List lst, String s1, String s2) { /* Should return 0 if either s1 or s2 or both are not present in lst. Should return 1 if the first occurence of s1 is before the first occurence of s2; and -1 otherwise. Use an iterator. */ return 1; } public static void main(String args[]) { LinkedList lst = new LinkedList(); lst.add("Jack"); lst.add("Jill"); HW3Q3 h = new HW3Q3(); System.out.println(h.position(lst, "Jack", "Jill")); } }