Questions from Starting Out With Java


Q: 1. Write a statement that declares a String array initialized with

1. Write a statement that declares a String array initialized with the following strings: “Einsteinâ€, “Newtonâ€, “Copernicusâ€, and “Keplerâ€. 2. Write a loop that displays the contents of ea...

See Answer

Q: How do you display a save dialog?

How do you display a save dialog?

See Answer

Q: How do you determine the file that the user selected with either

How do you determine the file that the user selected with either an open dialog or a save dialog?

See Answer

Q: If you want to place a dotted border around a Label control

If you want to place a dotted border around a Label control, which CSS style property would you set?

See Answer

Q: Assume scene is the name of a Scene object, and stylesheet

Assume scene is the name of a Scene object, and stylesheet.css is the name of a CSS stylesheet. Write the statement that applies the stylesheet.css stylesheet to scene.

See Answer

Q: If you want to apply styles to all of the nodes in

If you want to apply styles to all of the nodes in a scene, what selector would you use in a style definition?

See Answer

Q: If a style definition for a specific type of node contradicts a

If a style definition for a specific type of node contradicts a style rule in the .root definition, which takes precedence—the more specific style definition, or the .root definition?

See Answer

Q: When speaking of colors, what does RGB mean?

When speaking of colors, what does RGB mean?

See Answer

Q: What are the coordinates of the pixel in the upper-left

What are the coordinates of the pixel in the upper-left corner of the window?

See Answer

Q: What shape method do you call to scale a shape along the

What shape method do you call to scale a shape along the X axis?

See Answer