From d50d235fd2af5bc1b6b804a7fbabebb14d4e70f5 Mon Sep 17 00:00:00 2001 From: Pranavraj24 <116146069+Pranavraj24@users.noreply.github.com> Date: Mon, 31 Oct 2022 16:02:04 +0530 Subject: [PATCH] Create Difference .java It tells Difference between max and min --- Difference .java | 52 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Difference .java 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