From 350642eebeef7cf16f0928d293d1b328b2ebd8df Mon Sep 17 00:00:00 2001 From: PRITIISHAW <52010878+PRITIISHAW@users.noreply.github.com> Date: Wed, 2 Oct 2019 01:48:58 +0530 Subject: [PATCH 1/2] Create javaprog --- javaprog | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 javaprog diff --git a/javaprog b/javaprog new file mode 100644 index 0000000..0314054 --- /dev/null +++ b/javaprog @@ -0,0 +1,43 @@ +import java.io.*;//to import IO-Package +public class indices//to declare class +{ + public static void main(String args[])throws IOException//to define the main function and handle Input/Output Exceptions + { + InputStreamReader read=new InputStreamReader(System.in);//Defining Buffered-Reader class + BufferedReader in=new BufferedReader(read); + int n;//to store the length of the array + n=Integer.parseInt(in.readLine()); + int arr[]=new int[n];//to declare and initialize the array + int i;//loop variable + for(i=0;i Date: Wed, 2 Oct 2019 02:04:02 +0530 Subject: [PATCH 2/2] Delete javaprog --- javaprog | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 javaprog diff --git a/javaprog b/javaprog deleted file mode 100644 index 0314054..0000000 --- a/javaprog +++ /dev/null @@ -1,43 +0,0 @@ -import java.io.*;//to import IO-Package -public class indices//to declare class -{ - public static void main(String args[])throws IOException//to define the main function and handle Input/Output Exceptions - { - InputStreamReader read=new InputStreamReader(System.in);//Defining Buffered-Reader class - BufferedReader in=new BufferedReader(read); - int n;//to store the length of the array - n=Integer.parseInt(in.readLine()); - int arr[]=new int[n];//to declare and initialize the array - int i;//loop variable - for(i=0;i