title: Can import statements be used anywhere besides the beginning of a Java file?
body: <p>In python, the import statement can be placed everywhere in the file, even inside a <em>class</em>, or an <em>if</em>.</p>
  
  <p>Is there a way to accomplish the same thing in <em>Java</em>? I understand that it could be a bad practice not to put all the imports at the top of the file, I'm just wondering if it is possible in some way or not.</p>