I was at a conference and there were one presenter who showed some Java 8 code examples in an application, and I'm looking for the name of that or a similar app. 

The application compiled all code examples and showed output but the main thing was that he didnt have to write complete java code. It automatically handled imports and class definitions. He could just focus on code he wanted to show. This made it easy to quickly create examples. 

Edit; A clarification, this was not a complete IDE. It appeared to be a program specifically designed for quickly writing and testing short code examples. For example, he wrote and showed a for-each loop in Java 8, without any imports or having to create a main class or any of that syntactic fluff.