In this assignment, we will build a class to save 10 integers into an integer array. This class should be able to complete the following operations:
(1) Initialize the assay (assign value for each elements)
(2) Print out the value for all elements in the array
(3) Sort the array in ascend order and descend order
Use this class to build one object and show the way to sort it in in ascend order and descend order. Print the result after it was sorted.
rudolph.skinny 0 Newbie Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.