This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Sorting an integer array(ascending order) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Sorting an integer array(ascending order)" Watch "Sorting an integer array(ascending order)" New topic
Author

Sorting an integer array(ascending order)

Chaturaka Gunatilaka
Greenhorn

Joined: Oct 06, 2012
Posts: 16
int x[]={3,7,4,9,21,5}

How to sort the above array into int y[]={3,4,5,7,9,21} without using java.util.*;?
Thank you.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63232
    
  69

What have you tried so far? What problems are you having with it?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 44048
    
  33
And welcome to the Ranch
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Sorting an integer array(ascending order)
 
It's not a secret anymore!