online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
class Node{ int val; Node next; Node(int val){ this.val=val; } } public class Main { public static void main(String[] args) { Node a = new Node(1); Node b = new Node(2); Node c = new Node(3); Node d = new Node(4); Node e = new Node(5); a.next=b; b.next=c; c.next=d; d.next=e; Node temp=a; while(temp!=null){ System.out.println(temp.val); temp=temp.next; } } }

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