online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
public class Main { public static void main (String[]args) { String repeated; repeated = ""; for (int i = 1; i <= 4; i++) { repeated = repeated + new String (new char[i]).replace ("\0", (i + " ")) + new String (new char[i]).replace ("\0", "* ") + new String (new char[i]).replace ("\0", (i + " ")); } System.out.println (repeated); } }

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