Largest / Second Largest Element

Run Settings
LanguageJava
Language Version
Run Command
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 } }
Editor Settings
Theme
Key bindings
Full width
Lines