From f737d5ccb61515b5e8b5ea54d4caf310084eb6a4 Mon Sep 17 00:00:00 2001 From: Beryl Hoffman Date: Tue, 21 Nov 2023 11:54:02 -0500 Subject: [PATCH] Fixes to keepOnlyBlue description and String[][] --- _sources/Unit8-2DArray/pictureLabA5.rst | 2 +- _sources/Unit8-2DArray/topic-8-1-2D-arrays-Day2.rst | 2 +- _sources/Unit8-2DArray/topic-8-2-2D-array-loops-Day2.rst | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_sources/Unit8-2DArray/pictureLabA5.rst b/_sources/Unit8-2DArray/pictureLabA5.rst index 919d56d4..8d35e6db 100644 --- a/_sources/Unit8-2DArray/pictureLabA5.rst +++ b/_sources/Unit8-2DArray/pictureLabA5.rst @@ -338,7 +338,7 @@ You can use beach.jpg or one of the other images seen at the bottom of this less } /* - keepOnlyBlue() method sets the blue values at all pixels to zero. + keepOnlyBlue() method sets the red and green values at all pixels to zero. Add new method here and call it from main. */ diff --git a/_sources/Unit8-2DArray/topic-8-1-2D-arrays-Day2.rst b/_sources/Unit8-2DArray/topic-8-1-2D-arrays-Day2.rst index 27e9e4a6..63086d9c 100644 --- a/_sources/Unit8-2DArray/topic-8-1-2D-arrays-Day2.rst +++ b/_sources/Unit8-2DArray/topic-8-1-2D-arrays-Day2.rst @@ -97,7 +97,7 @@ Try the code below. Did it print what you expected? When you print a two dimens public void test2() { String code = getCode(); - String expected = "new String [4][2]"; + String expected = "new String[4][2]"; boolean passed = code.contains(expected); diff --git a/_sources/Unit8-2DArray/topic-8-2-2D-array-loops-Day2.rst b/_sources/Unit8-2DArray/topic-8-2-2D-array-loops-Day2.rst index df9fb5c2..ccefff81 100644 --- a/_sources/Unit8-2DArray/topic-8-2-2D-array-loops-Day2.rst +++ b/_sources/Unit8-2DArray/topic-8-2-2D-array-loops-Day2.rst @@ -512,8 +512,8 @@ You can test the methods in the active code below or in this |replit project| or } /* Add new methods here. - keepOnlyBlue() method sets the blue values at all pixels to zero. - switchColors() method swaps the color values of pixels. + keepOnlyBlue() method sets the red and green values at all pixels to zero. + switchColors() method switches colors, for example the red values with green values, etc. */ /* Main method for testing