Name:______________________________________
Read sections 3.6, 4.1, and 4.2 in your book.
Answer the following questions:
Picture object you need to pass a String whose
value is the path and name of a picture file on your filesystem.
How do you create a new Picture object by letting the user
select the picture location from a file chooser? (Section 3.6) Write the Java
statement below.
1 + 5
The result is 6, and its type is an int.
2.0 * 5
5 <= 10
new World();
FileChooser.pickAFile();
int[] values = {5, 10, 2, -6, 1};
-6 directly,
figure out how to access the value in the values object). Picture object declared, like the following:
Picture p = new Picture(FileChooser.pickAFile());
Write a Java statement (or several statements) to get the
pixel at location (55,121) from picture p and set its green value to 128.
Error: Undefined class Color when trying
to create a new Color object?
Color
object whose color is completely blue: