expected unqualified-id before 'public'

Pretty much i want to fill an array manually with the console using this code but i receive the following error:
Arduino:1.8.11 (Windows 10), Tarjeta:"Arduino Uno"

matriz:1:1: error: expected unqualified-id before 'public'

public class matriz

^~~~~~

exit status 1
expected unqualified-id before 'public'

public class matriz
{
public static void main(String args[]){
int filas = 0, columnas = 0, contador = 1, a = 0, b = 1, c = 0;
Scanner entrada = new Scanner(System.in);

System.out.print("De cuantas filas quieres tu arreglo: ");
filas = entrada.nextInt();

System.out.print("De cuantas filas quieres tu arreglo: ");
columnas = entrada.nextInt();

int numeros [][] = new int [filas][columnas];
for (int j = 0; i <filas; j++){
for(int i = 0; i<columnas; i++){

numeros [j] = a;
_ System.out.print("[" + numeros [j] + "]");_
* contador++;*
* c= a+b;*
* a-b;*
* b-c;*
* }*
* System.out.println("");*
* }*
* }*
}

I don't know the answer but if you had used code tags you could have asked a better question. I bet that your code did not have italics!

The Arduino runs via C++, not Java.

Currently. There is an upcoming Arduino that can use Micro Python and Java Script also.

Whandall:
The Arduino runs via C++, not Java.

Amen