title: How can I round down to the nearest integer from an int array?
body: <p>I'm designing a donation plugin in Java, from which a user can donate a custom amount. From donating, there are benefits you receive from certain packages. </p>
  
  <p>What I wish to do, is round down an integer <em>n</em>, to the nearest donation package. </p>
  
  <p>For example, there might be 3 donation packages, all represented as integers. There are the $5, the $10, and the $20 donation packages. If a user donates $13, I want the plugin to round that down to $10, as that is the nearest donation package. </p>