creation: 9/04/99
Instructions: This is an ungraded fill-in-the-blank exercise. Each question consists of a sentence with one or two words left out. A button represents the missing word(s). For each question, think of the word or phrase that should fill each blank, then click on the buttons to see if you are correct. No grade is calculated for this exercise.
code section | Output |
---|---|
Point pointA = new Point( ); Point pointB = new Point( 0, 0 ); System.out.println( pointA == pointB ); | |
Point pointA = new Point( 21, 17 ); Point pointB = pointA; System.out.println( pointA == pointB ); | |
Point pointA = new Point( 21, 17 ); Point pointB = new Point( 21, 17 ); System.out.println( pointA == pointB ); | |
Point pointA = new Point( 21, 17 ); Point pointB = new Point( 21, 17 ); System.out.println( pointA.equals( pointB ) ); | |
Point pointA = new Point( 21, 17 ); Point pointB = new Point( 21, 17 ); pointA.move( 8, 12 ); System.out.println( pointA.equals( pointB ) ); |