Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
564 B
0
Indexable
Never
Develop a set of methods, which work with an integer array. The methods to be implemented are:
i. min (which finds the minimum element in the array)
ii. max (which finds the maximum element in the array)
iii. sort (method to sort the array)
iv. reverse (method to reverse the array)
Place this in a package called p1. Let this package be present in a folder called “myPackages”, which 
is a folder in your present working directory (eg: c\student\\mypackages\p1). Write a main method to 
use the methods of package p1. Try various other alternatives too
Leave a Comment