can some1 give me an example of sorting and merging an 10 inputted integers?!using java array..

can some1 give me an example of sorting and merging an 10 inputted integers?!using java array..

Google it. "merge sort java code" would be a good search term. Here's a link to an earlier thread of yours where I commented and provided some links. Read them. Same applies here. You need to show some effort. Come back when you have made an attempt and have specific questions.

http://www.daniweb.com/forums/thread204292.html

Yeah, have your class implement the Comparable interface, then use Collections.sort(ArrayList goes here). With ints it is probably even easier than that though,.

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.