LD02: How Scanner Works due Wed 24 Jan 10:00

\begin{purpose}
In this assignment you will:
\begin{itemize}
\item Read abou...
...tinue working with {\tt git} from the command-line
\end{itemize}
\end{purpose}

Preparation for Lab Day

Do these steps:
  1. In your workspace, make sure you have the latest homework files from the base repository (git pull origin).
  2. Carefully read the document docs/howScannerWorks.txt taking time to experiment with Bart1.java and Bart2.java.
  3. Properly fix Bart2.java. NOTE: To be “properly fixed” you should not change the order in which input is gathered and you should continue to use .nextLine() to read the message (since the message will likely be a sentence and not just a single word).
  4. Commit your improvement to Bart2.java.
  5. Push your improvement to your homework repository (git push mine master).

Lab Day

  1. Show the instructor the modifications you made to Bart2.java to make it work properly.

  2. Copy the ParallelArrayMovies.java source code from the hw01 folder to the hw02 folder.

  3. Open the file tinymovielist.txt and study its structure. Once you understand how it is formulated jot down the Scanner commands you think would need to be inside a loop in order to correctly read the entries from the file into your arrays.

  4. In the hw02 folder modify the source file to correctly implement and call the loadMovies() method to behave according to its documentation.

  5. Show your work to the instructor.

  6. Once you have the loadMovies() method working properly go ahead and commit your changes to your local repository.

  7. Push the changes in your local repository to your hosted repository.

  8. If you finish early begin work on the homework assignment.