This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The question is to write a method that finds the smallest element in an array of integers. I have to use 1, 2,4,5,10,100,2,-22 to test the method. My program is able to compile but it wont run. If anyone could help it would be much appreciated.