Exam 2 Practice Questions
-
Write a Java method named
reflectVertical
that cuts an image in half
at getWidth()/2
and reflects the left half of the image over to the
right half. That is the
pixels in column zero get copied to the rightmost column getWidth() - 1
and the pixels in
column one get copied to column getWidth() - 2
, etc.
See an example in the folder
Exam2Practice/part1
and double click on run.bat
.
-
Finish the clock example we did in class and add a minute hand. See the example
in
Exam2Practice/clock
and double click on run.bat
.