diff --git a/AreaCalculation.java b/AreaCalculation.java new file mode 100644 index 0000000..ab72bff --- /dev/null +++ b/AreaCalculation.java @@ -0,0 +1,25 @@ +class Shape +{ + void area(int length, int breadth) + { + System.out.println("Area of Rectangle: "+length*breadth); + } + void area(double radius) + { + System.out.println("Area of Circle: "+3.14*radius*radius); + } + void area(float base, float height) + { + System.out.println("Area of Triangle: "+0.5*base*height); + } +} +class Calculation +{ + public static void main(String args[]) + { + Shape od=new Shape(); + od.area(8,5); + od.area(4.9); + od.area(9,7); + } +} \ No newline at end of file diff --git a/LargestNumberSample.java b/LargestNumberSample.java new file mode 100644 index 0000000..4de1ce2 --- /dev/null +++ b/LargestNumberSample.java @@ -0,0 +1,11 @@ +import java.util.Arrays; +public class LargestNumberSample { + 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 diff --git a/README.md b/README.md index 0e8605c..06d3315 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # 2feb2022 Demo for bca bscit sem 4 +hiiii!!!!!! We are connecting jenkins to Github