From 8bed26ae6f44322921a9c1c9e2f086266b12ddba Mon Sep 17 00:00:00 2001 From: Jason Yoder Date: Wed, 3 Apr 2024 15:37:09 -0400 Subject: [PATCH] fixing map instructions and moving a in-class project for graphics with interfaces to a better place --- .../PracticeInterfaces}/src/shapes/Main.java | 0 .../PracticeInterfaces}/src/shapes/MyCircle.java | 0 .../PracticeInterfaces}/src/shapes/MyCompositeShape.java | 0 .../PracticeInterfaces}/src/shapes/MyShape.java | 0 .../PracticeInterfaces}/src/shapes/MySquare.java | 0 .../PracticeInterfaces}/src/shapes/ShapeDrawer.java | 0 Homework/HWMaps/src/MapsHW/Maps.java | 8 ++++---- 7 files changed, 4 insertions(+), 4 deletions(-) rename ClassMaterials/{RecursionIntroduction/EclipseProjects/PracticeRecursion => Interfaces/EclipseProjects/PracticeInterfaces}/src/shapes/Main.java (100%) rename ClassMaterials/{RecursionIntroduction/EclipseProjects/PracticeRecursion => Interfaces/EclipseProjects/PracticeInterfaces}/src/shapes/MyCircle.java (100%) rename ClassMaterials/{RecursionIntroduction/EclipseProjects/PracticeRecursion => Interfaces/EclipseProjects/PracticeInterfaces}/src/shapes/MyCompositeShape.java (100%) rename ClassMaterials/{RecursionIntroduction/EclipseProjects/PracticeRecursion => Interfaces/EclipseProjects/PracticeInterfaces}/src/shapes/MyShape.java (100%) rename ClassMaterials/{RecursionIntroduction/EclipseProjects/PracticeRecursion => Interfaces/EclipseProjects/PracticeInterfaces}/src/shapes/MySquare.java (100%) rename ClassMaterials/{RecursionIntroduction/EclipseProjects/PracticeRecursion => Interfaces/EclipseProjects/PracticeInterfaces}/src/shapes/ShapeDrawer.java (100%) diff --git a/ClassMaterials/RecursionIntroduction/EclipseProjects/PracticeRecursion/src/shapes/Main.java b/ClassMaterials/Interfaces/EclipseProjects/PracticeInterfaces/src/shapes/Main.java similarity index 100% rename from ClassMaterials/RecursionIntroduction/EclipseProjects/PracticeRecursion/src/shapes/Main.java rename to ClassMaterials/Interfaces/EclipseProjects/PracticeInterfaces/src/shapes/Main.java diff --git a/ClassMaterials/RecursionIntroduction/EclipseProjects/PracticeRecursion/src/shapes/MyCircle.java b/ClassMaterials/Interfaces/EclipseProjects/PracticeInterfaces/src/shapes/MyCircle.java similarity index 100% rename from ClassMaterials/RecursionIntroduction/EclipseProjects/PracticeRecursion/src/shapes/MyCircle.java rename to ClassMaterials/Interfaces/EclipseProjects/PracticeInterfaces/src/shapes/MyCircle.java diff --git a/ClassMaterials/RecursionIntroduction/EclipseProjects/PracticeRecursion/src/shapes/MyCompositeShape.java b/ClassMaterials/Interfaces/EclipseProjects/PracticeInterfaces/src/shapes/MyCompositeShape.java similarity index 100% rename from ClassMaterials/RecursionIntroduction/EclipseProjects/PracticeRecursion/src/shapes/MyCompositeShape.java rename to ClassMaterials/Interfaces/EclipseProjects/PracticeInterfaces/src/shapes/MyCompositeShape.java diff --git a/ClassMaterials/RecursionIntroduction/EclipseProjects/PracticeRecursion/src/shapes/MyShape.java b/ClassMaterials/Interfaces/EclipseProjects/PracticeInterfaces/src/shapes/MyShape.java similarity index 100% rename from ClassMaterials/RecursionIntroduction/EclipseProjects/PracticeRecursion/src/shapes/MyShape.java rename to ClassMaterials/Interfaces/EclipseProjects/PracticeInterfaces/src/shapes/MyShape.java diff --git a/ClassMaterials/RecursionIntroduction/EclipseProjects/PracticeRecursion/src/shapes/MySquare.java b/ClassMaterials/Interfaces/EclipseProjects/PracticeInterfaces/src/shapes/MySquare.java similarity index 100% rename from ClassMaterials/RecursionIntroduction/EclipseProjects/PracticeRecursion/src/shapes/MySquare.java rename to ClassMaterials/Interfaces/EclipseProjects/PracticeInterfaces/src/shapes/MySquare.java diff --git a/ClassMaterials/RecursionIntroduction/EclipseProjects/PracticeRecursion/src/shapes/ShapeDrawer.java b/ClassMaterials/Interfaces/EclipseProjects/PracticeInterfaces/src/shapes/ShapeDrawer.java similarity index 100% rename from ClassMaterials/RecursionIntroduction/EclipseProjects/PracticeRecursion/src/shapes/ShapeDrawer.java rename to ClassMaterials/Interfaces/EclipseProjects/PracticeInterfaces/src/shapes/ShapeDrawer.java diff --git a/Homework/HWMaps/src/MapsHW/Maps.java b/Homework/HWMaps/src/MapsHW/Maps.java index c890213f..b82ef664 100644 --- a/Homework/HWMaps/src/MapsHW/Maps.java +++ b/Homework/HWMaps/src/MapsHW/Maps.java @@ -16,7 +16,7 @@ public class Maps { /** - * Given two arrays this operation must build and return a new HashMap that + * Given two arrays this operation builds and returns a new HashMap that * contains a mapping from String (hashmap's key) to Integer (hashmap's value) * * @param airportCodes an array of String containing 3-letter airport codes @@ -35,7 +35,7 @@ public static HashMap buildAirportMap(String[] airportCodes, In /** - * Given a single input string in inputString, this operation must return the character + * Given a single input string in inputString, this operation returns the character * from inputString that appears the most number of times * * Your solution must use a HashMap; you cannot use nested for-loops to solve this problem. @@ -114,7 +114,7 @@ public static int getNumberOfCoursesToTake(HashMap courseMap, St * This operation takes an array of temperatures and a corresponding array of the city names * giving the location where each temperature reading was recorded. * - * The operation must return the name of a city that experienced a temperature drop. + * The operation returns the name of a city that experienced a temperature drop. * If no city experienced a drop, the operation should return null. * * You must use a HashMap to solve this problem. @@ -148,7 +148,7 @@ public static String getTemperatureDropCity(int[] recordedTemps, String[] cityNa /** * This operation reverses (i.e., exchanges the keys and values) an initialMap. * initialMap may contain multiple different keys with the same value. - * Because of this, the value field of the returned map must be a list. + * Because of this, the value field of the returned map must be an ArrayList. * * The initial HashMap contains a mapping from Integers to Strings. * The reversed HashMap must contain a mapping from Strings to ArrayLists of Integers.