You can find information on marking the thread as solved on the announcements page.
Type: Posts; User: jps
You can find information on marking the thread as solved on the announcements page.
That is why we take the time to write sample code. It gives you something to look at, something to think about, and (hopefully) spawns a desire to try things for yourself.
If you have a new...
/** FILE: Sample.java */
/**@author jps<br>*/
public class Sample {
/**The number of times the loop in this sample is to run*/
public static final int REPS = 10;
/**This is the entry...
You have to have some way to know where the bricks are, some way to know where the ball is, and compare the locations to see if the ball has hit a brick.
Suggested reading: Control Flow Statements...