Computer Science, asked by priyansunath8976, 16 hours ago

Write a java program to input an integer array. Sort the array using bubble sorting.​

Answers

Answered by MissIncredible34
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