From d9ceaa8f713f99b4dd05db836d782f6b9ada6bf9 Mon Sep 17 00:00:00 2001 From: Galina Pokitko Date: Mon, 29 Jun 2026 15:39:00 -0400 Subject: [PATCH 1/2] Changed line 8 to 7 --- source/ch3_javadatatypes.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch3_javadatatypes.ptx b/source/ch3_javadatatypes.ptx index 830e0c2..4b75654 100644 --- a/source/ch3_javadatatypes.ptx +++ b/source/ch3_javadatatypes.ptx @@ -692,7 +692,7 @@ public class HistoArray {

- The main difference between this example and the previous example is that we declare count to be an Array of integers. We also can initialize short arrays directly using the syntax shown on line 8. Then notice that on line 22 we can use the square bracket notation to index into an array. + The main difference between this example and the previous example is that we declare count to be an Array of integers. We also can initialize short arrays directly using the syntax shown on line 7. Then notice that on line 22 we can use the square bracket notation to index into an array.

From 0c00f45be645e25324fafc2a3b1af2c4c8456da2 Mon Sep 17 00:00:00 2001 From: Galina Pokitko Date: Mon, 29 Jun 2026 16:10:35 -0400 Subject: [PATCH 2/2] removed unclear line references and instead replaced with the code in c tags --- source/ch3_javadatatypes.ptx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ch3_javadatatypes.ptx b/source/ch3_javadatatypes.ptx index 4b75654..ef3342d 100644 --- a/source/ch3_javadatatypes.ptx +++ b/source/ch3_javadatatypes.ptx @@ -692,8 +692,8 @@ public class HistoArray {

- The main difference between this example and the previous example is that we declare count to be an Array of integers. We also can initialize short arrays directly using the syntax shown on line 7. Then notice that on line 22 we can use the square bracket notation to index into an array. -

+ The main difference between this example and the previous example is that we declare count to be an Array of integers. We also can initialize short arrays directly using the syntax shown here: Integer[] count = {0,0,0,0,0,0,0,0,0,0}Then notice that we can use the square bracket notation count[idx] to index into an array. +