How Scanner Works due Wed 06 Sep 11: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.
  4. Commit your improvement to Bart2.java.
  5. Push your improvement to your homework repository (git push mine).

Lab Day

  1. Begin by getting your most recent homework snapshot on a workspace in the computer lab. If you are bringing a laptop with you and your local repository is on the laptop, just start work on your laptop. If your workspace is on a remote desktop, begin by logging in to your account on a lab computer and pulling from your hosted repository into the local repository we created on the first lab day.

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

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

  4. 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.

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

  6. Show your work to the instructor.

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

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

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

Quick Links