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("");*
* }*
* }*
}