Computer Science, asked by na5744236, 3 months ago

write a Java Program to input integer element in an array and sort them in, descending order using bubble sort technic​

Answers

Answered by vishva2373
0

Answer:

Mark Me brainlist

Explanation:

Java Program to Sort the Array in Descending Order

public class Descending_Order.

int n, temp;

Scanner s = new Scanner(System.

System. out. print("Enter no. of elements you want in array:");

n = s. nextInt();

int a[] = new int[n];

System. out. println("Enter all the elements:");

for (int i = 0; i < n; i++)

Similar questions