Quiz 5, 9/27


Add a public method to the LinkList class called indexOf that takes an int and returns the index in this linked list of the first occurrence of the given integer, or -1 if the linked list does not contain this integer. Assume that the first node in the linked list has index 0, the next node has index 1, etc.

Use the following function header:

	int indexOf(int x)