I just start using IntelliJ-14
and I want to know about a scratch file. If I create a java scratch can I compile this as a normal Java
class.
What I Have Already Tried
Create a Java
class in a scratch file but unable to find any way to compile this.
What I am looking for rather than creating a new Java
file in an existing project for running some test code I just want to use scratch file and write some test class with the main method and after complete running close the scratch file. Is that possible?
Executability for Java scratch files was added in IntelliJ 15, so you must upgrade for that feature.
You have several option how to run/debug the scratch file: