CJCoding With Joseph

Sort an Array Ascending

An int array is given. Sort it into ascending order WITHOUT using Arrays.sort (write the sort yourself, for example bubble sort), then print the sorted array on one line separated by single spaces.

For the array {5, 2, 8, 1, 9, 3} the program prints:
1 2 3 5 8 9

Expected Output:

1 2 3 5 8 9
Topics:
Arrays
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.