Skip to content

Commit

Permalink
Merge pull request #64 from LaunchCodeEducation/mike-issue-51
Browse files Browse the repository at this point in the history
Clarified 'No Results' output on exercise one task one (Issue #51)
  • Loading branch information
johncfrauen-lc101 authored Sep 16, 2024
2 parents 798f65b + cec9a59 commit 2cec94f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions content/assignments/techjobs-console/task-one/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ For the autograding script to correctly grade your code, you'll need to match th

If there are no results, it should print `No Results` in the following format:

```console
No Results
```

Be sure to use the *exact* message `No Results` taking care to match casing. In full context with prompting, the application will look like this when a user enters a term that would yield no results:

```console
Search term:
Example Search Term with No Results
Expand All @@ -50,8 +56,6 @@ View jobs by (type 'x' to quit):
1 - List
```

Again, you should use this *exact* message.

{{% notice green Tip "rocket" %}}
To do this, you'll need to iterate over an `ArrayList` of jobs. Each job is itself a `HashMap`. While you can get each of the items out of
the `HashMap` using the known keys (`employer`, `location`, etc.), think instead about creating a nested loop to loop over each `HashMap`. If a new field is added to the job records, this approach will print out the new field without any updates to `printJobs`.
Expand Down

0 comments on commit 2cec94f

Please sign in to comment.