title: Creating Multiple Rectangle Objects at Once (Java)
body: <p>First off,  thanks for just clicking this :) I'm an amateur student coder, and I'm creating a (horrible) version of Pacman. I'm trying to create rectangles for each of my dots on my 1000x650 applet screen, so I can create an if statement when  Packages hit box touches them, they disappear. </p>
  
  <p>My problem is, I want to create a class so I can create the rectangles easily and have only 1 if statement,  and not one for each dot rectangle (trying to learn to be efficient :P) </p>
  
  <p>If I didn't elaborate enough, I'll be wary to bring edits based on your responses,  and thanks!!! </p>
  
  <p>(Edit 1: Fixed a run on sentence xD) </p>