Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

halp me

Name: dfasd 2007-10-01 23:23 ID:4f+ZGxp4

halp me /prog/

i have project due for my computer science class. i have to sort 10 integers using the bubble sort algorithims, and two for loops in java. heres the description:

Project Description

Working with your team, sort a list of integers in ascending
order using the Bubble Sort Algorithm. Display the sorted list and the smallest and the two largest values.

Input and Validation

Input a list of 10 integers using the JOptionPane showInputDialog class and method. Validate the list of integers, rejecting any input that is not digits (0 through 9) and requesting the user re-enter any invalid input. Convert the validated keyboard input string values to integer, and store the integer values in a 10-element integer array.

Output

Display the sorted list of 10 integers, and the smallest and two largest integer values using the JOptionPane showMessageDialog class and method.

HELP ME

Name: Anonymous 2007-10-01 23:33 ID:4f+ZGxp4

>>6
Sorry... I just don't have any idea how to implement the bubble sort into a for loop, or how a for loop even works...

I don't know where to start... My knowledge of JAVA is pretty much nothing...

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List