title: Shortcuts for testing out small code snippets in IntelliJ IDEA?
body: <p>I use IntelliJ IDEA and was thinking about how nice it would be to be able to pop up a context where I could write, compile and run some simple core java code and then automatically dispose of the whole thing when I close the context.</p>
  
  <p>Sometimes you just want to try simple something out, like a regular expression (I'm aware there's a regex tester plugin) or some series of bit-wise operations; for whatever reason its not always feasible to test directly within the project code and creating a whole new project is disruptive to the work flow.</p>
  
  <p>So my question is this: what do other people use to try out their snippets of code?  </p>