Thread: recursion
View Single Post
  #3 (permalink)  
Old 01-25-2008, 05:53 AM
kdeighan kdeighan is offline
Member
 
Join Date: Jan 2008
Posts: 3
kdeighan is on a distinguished road
okay i got the base case down, but i don't think i called the recursive method correctly at all.


Code:
public double findLargest(myArray) { if( k == 0) { maximum = doubs[k]; return maximum; } else return (myArray.findLargest(k-1) }
Reply With Quote