Quick actions

cmd+k|ctrl+k

Navigation

Languages

Largest / Second Largest Element

Snippet info

Language

Java

Visibility

public

Author

sibasisrath2000

Created

2025-11-26T04:16:42.705689Z

Updated

2025-11-26T04:20:54.567504Z

class Main {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
    public static void largestEle(){
        // pass through every element and compare to get the largest
    }
    public static void secLargestEle(){
        // take 2 variables l1 and l2.
        // l1 = max int val and l2 = min int val then compare and get the l2
    }
}
INFO