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 myi, repeatedi, repeateds, repeated; repeated = ""; for (int i = 1; i <= 4; i++) { myi = (i + " "); repeatedi = new String(new char[i]).replace("\0", myi); repeateds = new String(new char[i]).replace("\0", "* "); repeated = repeated + repeatedi + repeateds + repeatedi; } 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