online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import java.util.*; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int rows = scanner.nextInt(); int cols = scanner.nextInt(); int[][] matrix = new int[rows][cols]; for(int k=0;k<rows;k++){ for(int l=0;l<cols;l++){ matrix[k][l]=scanner.nextInt(); } } int i = scanner.nextInt(); int j = scanner.nextInt(); for(int k=0;k<rows;k++){ int temp = matrix[k][i]; matrix[k][i] = matrix[k][j]; matrix[k][j]=temp; } for(int k=0;k<rows;k++){ for(int l=0;l<cols;l++){ System.out.print( matrix[k][l]+" "); } System.out.println(); } } }

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