Preview:
       fun(3,4,2);
        System.out.println( fun(10,100,164));
    }

    static int fun(int a, int b, int c) {
        if((a<b) && (b<c)){
            return c;
        }
        if ((b<a) && (c<a)){
            return a;
        }
        else {
            return c;
        }
    }
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter