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
16 changes: 16 additions & 0 deletions Area.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
interface AreaRect
{
float area(float length, float breadth);
}
class Area implements AreaRect
{
public float area(float length, float breadth)
{
return(length*breadth);
}
public static void main(String args[])
{
Area obj=new Area();
System.out.println("Area: " +obj.area(2,5));
}
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# 2feb2022
Demo for bca bscit sem 4
This is relcy!
This is a project to connect jenkins to github
12 changes: 12 additions & 0 deletions Sort.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

import java.util.Arrays;
public class Sort{
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);
}
}