Skip to content

Commit dd20658

Browse files
committed
feat: Modify and access elements in a String array
🧠 Logic: - Declares and initializes a String array with month names. - Updates the value at index 2 from "Mar" to "June". - Prints the updated value at index 2. Signed-off-by: Somesh diwan <[email protected]>
1 parent 68b6ac3 commit dd20658

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Section9ArrayAB/Array IMP/ArrayCC1.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
//Changing the elements of an Array
2-
//To change the value of a specific element, we can refer to the index number.
1+
/*
2+
Changing the elements of an Array.
3+
To change the value of a specific element, we can refer to the index number.
4+
*/
35

46
public class ArrayCC1 {
57
public static void main(String[] args) {

0 commit comments

Comments
 (0)