online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
import java.io.File; import java.io.IOException; public class App{ public void createFile(String filename){ File file = new File(filename); try { if (file.createNewFile()) { System.out.println("File created: " + file.getAbsolutePath()); } else { System.out.println("File already exists: " + file.getAbsolutePath()); } } catch (IOException e) { System.err.println("Error creating file: " + e.getMessage()); } } public static void main(String[]args){ App app = new App(); app.createFile("example.txt"); } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue