online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
public class Main { public static void main(String[] args) { // sayHello(); // sayAnything("Hello there"); // sayAnything("Java functions are great!"); //sayAnythingAgain("is there an echo in here?", 3); int[] someNumbers = new int[]{11,22,33}; int total; total = calcSum( someNumbers ); System.out.println( "The sum is " + total); } // end of main() method public static int calcSum(int[] nums) { int sum = 0; for(int n : nums) { sum += n; } return sum; } public static void sayAnythingAgain(String msg, int times) { for(int i = 1; i <= times; i++) { System.out.println(msg); } } public static void sayHello() { System.out.println("My function says hello!!"); } public static void sayAnything(String msg) { System.out.println(msg); } }

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