From 35f5e80e00e74f79373e4c756b246f366885d0d1 Mon Sep 17 00:00:00 2001 From: YuX <222806745+YuX277@users.noreply.github.com> Date: Mon, 27 Oct 2025 18:07:02 -0700 Subject: [PATCH] Update SomeJavaCode.java --- SomeJavaCode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SomeJavaCode.java b/SomeJavaCode.java index 3c4508b..2582373 100644 --- a/SomeJavaCode.java +++ b/SomeJavaCode.java @@ -1,7 +1,7 @@ public class SomeJavaCode { public static void main(String[] args) { int[] arr = new int[] { 1, 3, 6, 3, 10, 20 }; - for (int i = 0; i <= arr.length; i++) { + for (int i = 0; i < arr.length; i++) { System.out.println(arr[i]); } }