• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

bubble sort algorithm

 
tyler jones
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm reading a book and it has an exercise at the end of a chapter that says to use the bubble sort algorithm. I've checked out sun's website and can't find any mention of it, and the book doesn't mention anymore about it. Does anyone know if this is a built in method in java? And if so, what class is it in? Thanks.
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a standard algorithm for programming regardless of the language, C, C++, Pascal, Java, etc. As far as I know, there is no method in the java API called bubble sort. Check your local library for a book on algorithms to get the general concept. A good one is Data Structures & Algorighms in Java by Mitchell Waite.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a site that contains some sort algorithms:
http://www.scs.carleton.ca/~morin/misc/sortalg/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic