Results 21 to 26 of 26
Thread: Finding maximum..
- 09-06-2011, 04:17 AM #21
Senior Member
- Join Date
- Aug 2011
- Posts
- 248
- Rep Power
- 2
- 09-06-2011, 04:22 AM #22
Re: Finding maximum..
Yes and each time I call the findMax method it compares each value in the array with the max instance variable. After all four arrays have been passed to the findMax method the max variable will hold the highest number.
- 09-06-2011, 04:53 AM #23
Senior Member
- Join Date
- Aug 2011
- Posts
- 248
- Rep Power
- 2
Re: Finding maximum..
Then it should look like this FindMax(ar1,max);
Anyway nice one, it's a good solution.
But saying that my first solution is load of tosh is offensive, definitely when it's true.
I agree that some of the variables was unnecessary but it's certainly not load of tosh.
Anyway I think that the thread maker has now few options to solve his problem.
Case solved :)
- 09-06-2011, 04:57 AM #24
Re: Finding maximum..
I'm sorry your delicate sensibilities were offended. Why I said it was a load of tosh is because your post made it sound like your solution was the only way to do it. You have to be careful how you phrase things especially when talking to n00bs.
- 09-06-2011, 04:59 AM #25
Member
- Join Date
- Sep 2011
- Posts
- 10
- Rep Power
- 0
Re: Finding maximum..
Didn't mean to get you two worked up haha, but I really do appreciate both of your ideas and solutions. Thank you :)
P.S. I'm a she, for future reference :p
- 09-06-2011, 05:55 AM #26
Senior Member
- Join Date
- Aug 2011
- Posts
- 248
- Rep Power
- 2
Similar Threads
-
Finding minimum and maximum of 'n' numbers...please help!
By snw19 in forum New To JavaReplies: 8Last Post: 03-25-2011, 11:38 PM -
Finding maximum number at index position
By Shyamz1 in forum New To JavaReplies: 9Last Post: 10-27-2010, 08:14 PM -
Maximum subsequence
By dxg in forum New To JavaReplies: 12Last Post: 09-25-2010, 05:40 PM -
find maximum value from for loop
By napi1234 in forum New To JavaReplies: 15Last Post: 06-02-2010, 03:39 PM -
Maximum size of an array
By Hasan in forum New To JavaReplies: 1Last Post: 05-20-2007, 11:11 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks