title: Java Reflection - Get List of Packages
body: <p>I am building a Java app that has a number of different packages. I want to be able to tell programmatically which packages exist in the app that start with a specific pre-fix.  Is there anyway to do this with the Java reflection APIs?  I didn't see anything like this related to the reflection apis.</p>
  
  <p>Example: </p>
  
  <pre><code>com.app.controls.text
  com.app.controls.picker
  com.app.controls.date
  etc
  </code></pre>
  
  <p>I want to enumerate all of these by knowing the prefix "com.app.controls" and understanding that a new package might get integrated in the future.</p>
  
  <p>Thanks!</p>