This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I'm trying to write a method in Java that takes an array of ints (myArray) and an int (num) and returns a boolean value to say whether or not number is in myArray but using compareTo. However don't know how to use it too well and and stuck on it. Would love help as I'm a beginner programmer. Here is my code so far!