Write a java program to input an integer array. Sort the array using bubble sorting.
Answers
Answered by
4
Explanation:
Java program to bubble sort
- import java. util. Scanner;
- class BubbleSort {
- public static void main(String []args) {
- int n, c, d, swap;
- Scanner in = new Scanner(System. in);
- System. out. println("Input number of integers to sort");
- n = in. nextInt();
- int array[] = new int[n];
Similar questions