... c t period intersects left parenthesis shape comma element period shape right parenthesis ampersand ampersand velocity X greater than sign 0 right parenthesis semicolon. This line is highlighted. Line 29, indented once. right brace. Line 30. blank. Line 31, indented once. forward slash forward slash returns true if this Cannonball is on the screen. Line 32, indented once. public boolean is On Screen left parenthesis right parenthesis left brace. Line 33, indented twice. return on Screen semicolon. Line 34, indented once. right brace. Line 35. blank. Line 36, indented once. forward slash forward slash reverses the Cannonball's horizontal velocity. Line 37, indented once. public void reverse Velocity X left parenthesis right parenthesis left br

Get Android How to Program, 3/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.