online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
public class Main { //initialize counter variable static int counter = 0; Main() { counter++; } public static void main (String[] args) { new Main(); new Main(); new Main(); new Main(); // accessing static member through classname System.out.println(Main.counter); } }

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