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 queues<E> { private Stack<E> primary=new Stack<>(); private Stack<E> secondary=new Stack<>(); public void enque(E data) { while(primary.size()!=0) { secondary.push(primary.pop()); } primary.push(data); while(secondary.size()!=0) { primary.push(secondary.pop()); } } public void deque() { System.out.println(primary.pop()); } public void print() { System.out.println(primary); } public static void main(String[] args) { queues<Integer> a=new queues<>(); a.enque(1); a.enque(2); a.enque(3); a.enque(4); a.print(); } }

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