diff --git a/First.class b/First.class new file mode 100644 index 0000000..c086aae Binary files /dev/null and b/First.class differ diff --git a/LN.java b/LN.java new file mode 100644 index 0000000..4cbc1da --- /dev/null +++ b/LN.java @@ -0,0 +1,11 @@ +import java.util.Arrays; +public class LN{ + public static void main(String args[]){ + int array[] = {10, 20, 25, 63, 96, 57}; + int size = array.length; + Arrays.sort(array); + System.out.println("sorted Array ::"+Arrays.toString(array)); + int res = array[size-1]; + System.out.println("largest element is ::"+res); + } +} \ No newline at end of file