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. *******************************************************************************/ import java.util.Arrays; public class Main { public static void main(String[] args) { Thread[] threads = new Thread[]{ new Thread(new MyFancyRunable("Hello")), new Thread(new MyFancyRunable("From")), new Thread(new MyFancyRunable("A")), new Thread(new MyFancyRunable("Thread"))}; Arrays.stream(threads).forEach(Thread::start); Arrays.stream(threads).forEach(t->{ try{ t.join(); } catch(InterruptedException ex){ System.out.println("Interrupted while waiting for join()!"); } }); } } class MyFancyRunable implements Runnable{ private String msg; public MyFancyRunable(String msg){ this.msg = msg; } @Override public void run(){ System.out.println("Thread "+Thread.currentThread().getId()+" says:" + msg); } }

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