From 1d06a09757c0be18ce893dcf14ec34a2910f99fa Mon Sep 17 00:00:00 2001 From: mahboobe <mahboobe.shakerinadr@ucalgary.ca> Date: Wed, 25 Sep 2024 12:57:40 -0600 Subject: [PATCH] commenting array examples --- src/Main.java | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Main.java b/src/Main.java index 038e564..259c9de 100644 --- a/src/Main.java +++ b/src/Main.java @@ -8,12 +8,17 @@ public class Main { System.out.println("changes in the merge"); System.out.println("Hello Mahboobe changing the code online!"); - int[] Mynumbers ={1,3,4,6}; - int[] Mynumbers2 = new int[4]; - Mynumbers2[0] = 5; - Mynumbers2[1] = 7; - Mynumbers2[2] = 9; - Mynumbers2[3] = 10; + + + + + +// int[] Mynumbers ={1,3,4,6}; +// int[] Mynumbers2 = new int[4]; +// Mynumbers2[0] = 5; +// Mynumbers2[1] = 7; +// Mynumbers2[2] = 9; +// Mynumbers2[3] = 10; // // for(int i=0; i < Mynumbers.length; i++){ // System.out.println("myNumber array value that index " + i + "\t is \t" + Mynumbers[i]); @@ -27,15 +32,15 @@ public class Main { // System.out.println("myNumber array value is \t" + number); // } - String[] fruits = {"Apple", "Banana", "Mango"}; - - for(String fruit: fruits) { - System.out.println("fruit name is \t" + fruit); - } - - for(int i=0; i< fruits.length; i++) { - System.out.println("fruit name is \t" + fruits[i]); - } +// String[] fruits = {"Apple", "Banana", "Mango"}; +// +// for(String fruit: fruits) { +// System.out.println("fruit name is \t" + fruit); +// } +// +// for(int i=0; i< fruits.length; i++) { +// System.out.println("fruit name is \t" + fruits[i]); +// } -- GitLab