Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class L09B
- {
- public Treasure[] min(Treasure[] t1)
- {
- Treasure[] array = {};
- Treasure minValue = t1[0];
- for(int index = 0; index < t1.length; index++)
- {
- if (minValue < t1[index])
- {
- minValue = t1[index];
- }
- }
- return minValue;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement