thanks everyone for your help,
firstly it was my fault i had no need for the exception
test to be in there so iv removed it.
Also, some of the comments i havent completely understood, this is to be fair my own lack of knowledge of java so please dont think im being insulting for asking for further help. Iv read the comments and worked on my code but im still having no luck, my code is now as follows:
and my method call reads:
int me = p.getMinEdge(ce);
Im trying to get this method to sort my array to find the smallest in it and then simply return the value of this.
However with this code i get two errors, one in each class. in the class with the method, i get the error:
missing return statement with the arrow under the last brace
and in the other class:
incompatible types
found: int
required: int[]
under the 1st curly bracket in the getMinEdge(ce);
i appreciate all the help given so far and please continue to help, this problem is really frustrating me