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 scan = new Scanner(System.in); System.out.print("Enter number 1: "); int operand1 = scan.nextInt(); System.out.print("Enter operator: "); String operator = new Scanner(System.in).nextLine(); System.out.print("Enter number 2: "); int operand2 = scan.nextInt(); if (operator.equals("+")) { System.out.print(operand1 + operand2); } else if (operator.equals("-")) { System.out.print(operand1 - operand2); } else if (operator.equals("*")) { System.out.print(operand1 * operand2); } else { System.out.print("error: unknown UnsupportedOperationException..."); } } }

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