Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions AreaCalculation.java
Original file line number Diff line number Diff line change
@@ -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);
}
}
11 changes: 11 additions & 0 deletions LargestNumberSample.java
Original file line number Diff line number Diff line change
@@ -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);
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# 2feb2022
Demo for bca bscit sem 4
hiiii!!!!!! We are connecting jenkins to Github