title: independent prototyping with java
body: <p>I am new to java (well I played with it a few times), and I am wondering:</p>
  
  <p>=> How to do <em>fast</em> independent prototypes ? something like one file projects.</p>
  
  <p>The last few years, I worked with python. Each time I had to develop some new functionality or algorithm, I would make a simple python module (i.e. file) just for it. I could then integrate all or part of it into my projects. So, how should I translate such "modular-development" workflow into a java context?</p>
  
  <p>Now I am working on some relatively complex java DB+web project using spring, maven and intelliJ. And I can't see how to easily develop and run independent code into this context.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I think my question is unclear because I confused two things:</p>
  
  <ol>
  <li>fast developement and test of code snippets</li>
  <li>incremental development</li>
  </ol>
  
  <p>In my experience (with python, no web), I could pass from the first to the second seemlessly. </p>
  
  <p>For the sake of consistency with the title, <strong>the 1st has priority</strong>. However it is good only for exploration purpose. In practice, the 2nd is more important. </p>