diff --git a/Difference .java b/Difference .java new file mode 100644 index 0000000..25c4455 --- /dev/null +++ b/Difference .java @@ -0,0 +1,52 @@ +import java.util.Scanner; +  //This class will calculate the max and min values of the array +class TestArray   +{             +int MAX(int[]Arry)   +{ +int maxValue= Arry[0];             +for(int i=1;imaxValue)               +{                   +maxValue=Arry[i];               +}           +}           +return maxValue; +//This method will return the max value present in the array.       +}         +int MIN(int[]Arry)       +{           +int minValue=Arry[0];             +for(int i=1;i