From 8396494307585e4ad186d98cc8e46d438acd6eaf Mon Sep 17 00:00:00 2001 From: JaiAravindh-git <62341189+JaiAravindh-git@users.noreply.github.com> Date: Wed, 13 Oct 2021 10:08:06 +0530 Subject: [PATCH] Java Program to find maximum repeated number --- JAVA/Maximum repeated Number | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 JAVA/Maximum repeated Number diff --git a/JAVA/Maximum repeated Number b/JAVA/Maximum repeated Number new file mode 100644 index 0000000..7e56643 --- /dev/null +++ b/JAVA/Maximum repeated Number @@ -0,0 +1,38 @@ +import java.util.Scanner; + +public class Main{ + public static void main (String[] args) { + + int max=0,count=0,tmpcount=0,size; + + Scanner sc=new Scanner(System.in); + size=sc.nextInt(); + sc.nextLine(); + if(size<=0){ + System.exit(0); + } + int[] a=new int[size]; + for(int i=0;i=count){ + if(a[i]