View Single Post
  #5 (permalink)  
Old 12-03-2007, 01:47 PM
wsaryada wsaryada is offline
Member
 
Join Date: Jun 2007
Location: Bali, ID
Posts: 98
wsaryada is on a distinguished road
You may also use the Collections and Arrays class in-collaboration to get the maximum or the minimum value of an array. The code will be something like:

Code:
Collections.max(Arrays.asList(n));
On the other hand to get the minimum value of an array the code will be:

Code:
Collections.min(Arrays.asList(n));
__________________
Website:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Blog:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by wsaryada : 12-03-2007 at 01:52 PM.
Reply With Quote