online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
public class Main { public static void main(String[] args) { final int SIZE_ARR = 5; System.out.println("연산1. 배열 생성 및 초기화"); int[] myArr1={2023, 9, 17, 11, 0}; int[] myArr2 = new int[SIZE_ARR]; for(int loopIdx=0; loopIdx<SIZE_ARR; loopIdx++) {//크기만 선언된 배열에 초기값 입력. myArr2[loopIdx] = 0; } System.out.println("==============================="); System.out.println("연산2. 배열값 검색 및 접근"); for(int loopIdx=0; loopIdx<SIZE_ARR; loopIdx++) { if(myArr1[loopIdx]==11){ System.out.println("11 위치는 index = " + loopIdx); } } System.out.println("myArr2[3] = " + myArr2[3]); System.out.println("==============================="); System.out.println("연산3. 배열값 변경"); for(int loopIdx=0; loopIdx<SIZE_ARR; loopIdx++) { myArr2[loopIdx] = myArr1[loopIdx] - 10; System.out.println("(myArr2)index="+ loopIdx +" --> "+ myArr2[loopIdx]); } } }

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