to input 10 interger elements in an array & sort them in desc. rder using the bubble sort technique.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
to input 10 interger elements in an array & sort them in desc. rder using the bubble sort technique.
Hi, what have you tried? Where did you get stuck with the code? What exceptions did you get?
spoon-feeding will not help you.
I'm not expecting spoon feeding. struckd up while bubble sort. thanks for ur help
A few things to consider:
1. How many passes will it make?
2. What sort of repetition will you use?
3. Using a temporary storage variable is often a good idea.
4. Do you know how to increment/decrement an array index?
Wishes Ada xx
If to Err is human - then programmers are most human of us all.
"The Analytical Engine offers a new, a vast, and a powerful language . . .
for the purposes of mankind."
— Augusta Ada Byron, Lady Lovelace (1851)
Thread closed.
Please start another when you have code you need help with. Give the new thread a meaningful title.