The moose likes Beginning Java and the fly likes Java algorithm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java algorithm" Watch "Java algorithm" New topic

Java algorithm

Skm Liyanage

Joined: Sep 09, 2012
Posts: 23

please tell a source code for the bubble sort and quick sort algorithm

Come, we all correct our wrongs.
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11957

There is no such thing as a "java algorithm". There are algorithms that can be implemented in java, C, Perl, etc.

Bubble and quick sorts are very common, well documented ways of writing sorts. I'm sure if you searched, you could find algorithms in about 10 seconds.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Jeff Verdegan

Joined: Jan 03, 2004
Posts: 6109

Skm Liyanage wrote:please tell a source code

It doesn't work that way. This site is NotACodeMill(←click). Folks here expect you to ShowSomeEffort(←click). If you do that and ask a specific question about whatever difficulty you're having, people will be happy to help you. We won't do your work for you though.

Happy coding!
Skm Liyanage

Joined: Sep 09, 2012
Posts: 23

thanks very much
I agree. Here's the link:
subject: Java algorithm
jQuery in Action, 3rd edition