online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int anothervalue; System.out.println("Choose your options \n 1 for another switch \n 2 for none \n"); int value = sc.nextInt(); switch(value) { case 1: System.out.println("Enter your options"); anothervalue=sc.nextInt(); switch(anothervalue) { case 1: System.out.println("You pressed 1"); break; default: System.out.println("You choose wrong options"); } break; case 2: System.out.println("You Choose 2"); break; default: System.out.println("You entered wrong options"); } } }

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