import java.util.*;
import java.lang.*;
import java.io.*;

// The main method must be in a class named "Main".
class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");
    int arr[] = {64, 34, 25, 12, 22, 11, 90};
     int n = arr.length;
        for (int i = 0; i < n-1; i++)
            for (int j = 0; j < n-i-1; j++)
                if (arr[j] < arr[j+1])
                {
                    // swap arr[j+1] and arr[j]
                    int temp = arr[j];
                    arr[j] = arr[j+1];
                    arr[j+1] = temp;
                };
     for (int element: arr) {
            System.out.println(element);
        }
    }
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: