File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

output of this code

 
Rajesh Veluchamy
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you say what is happening in this program(sort jsp).........
the comment line is written by me

output:

10,5,40,25,1000,1

5 1000
40 25
10 40
40 1000
1 1000
1 5
40 5
10 25
1 25
25 5
1 10
10 5
5 1

1,5,10,25,40,1000

-Rajesh.v
Software Consultant (IT)
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure what you are after here....It goes through the array and sorts the number. The output shows how the sort works.

Eric
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic