online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Online Java Compiler. Code, Compile, Run and Debug java program online. Write your code in this editor and press "Run" button to execute it. *******************************************************************************/ public class Main { public static void main(String[] args) { System.out.println("Hello World"); } }
public class LevelCrossingController { private Light orangeLight; private Light redLight1; private Light redLight2; }
import javax.swing.JPanel; import java.awt.Graphics; import java.awt.Color; public class Light extends JPanel { @Override public void paintComponent(Graphics g){ super.paintComponent(g); g.setColor(Color.RED); g.drawOval(20, 20, 30, 30); g.setColor(Color.RED); g.drawOval(40, 40, 30, 30); try{ Thread.sleep(1000); }catch(Exception e){ e.toString(); } g.setColor(Color.BLACK); g.drawOval(20, 20, 30, 30); g.setColor(Color.BLACK); g.drawOval(40, 40, 30, 30); } public void simulateTrainCrossing(){ int count = 0; while(count != 15){ try { Thread.sleep(1000); } catch(Exception e) { } finally { } repaint(); count++; } } }

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