I looked up a few tutorials and combined it with the binary search code for integers that I had done previously. I get an error at [if (temp[mid].compareTo(key) < 0)] and