online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
import java.util.Scanner; // import Scanner class public class Main { public static void main(String[] args) { String name; int age; // declare a variable 'input' of type Scanner // assign it to keyboard (default input) Scanner input = new Scanner(System.in); // prompt user & save to variable // note nextLine() for String System.out.println("Please enter your name."); name = input.nextLine(); // note nextInt() for int System.out.println("How old are you " + name + "?"); age = input.nextInt(); System.out.println("Name:" + name + " Age:" + age ); } }

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