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[] a = {1000,20,30,40,50,60};
        int temp,size;
        size = a.length;
        for(int i=0;i<size;i++){
        for(int j=i+1;j<size;j++){
            if(a[i]>a[j]){
                temp = a[i];
                a[i]=a[j];
                a[j]=temp;
            }
        }
            
        }
        System.out.println(a[size-1]);
              }
           
}

Embed on website

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