
Por qué falla -> String[] headers; headers = {"Código"};
Publicado por Jorge (9 intervenciones) el 25/02/2016 03:20:31
1
2
String[] headers;
headers = {"Código"};
1
2
String[] headers = new String[1];
headers[0] = "Código";
Valora esta pregunta


0
String[] headers;
headers = {"Código"};
String[] headers = new String[1];
headers[0] = "Código";
int [][] ventas = new int[4][6];
double [][] temperaturas = new double[3][4];
int [][] m = new int[3][];
m[0] = new int[3];
m[1] = new int[5];
m[2] = new int[2];
int matriz[][] = new int[3][3];
matriz[0][0] = 2;
matriz[0][1] = 4;
matriz[0][2] = 4;
matriz[1][0] = 6;
matriz[1][1] = 6;
matriz[1][2] = 9;
matriz[2][0] = 8;
matriz[2][1] = 10;
matriz[2][2] = 12;
int [][] matriz = {{2,4,4},{6,6,9},{8,10,12}};
/* Declaración, Definición e Inicialización */
String kk[];
kk = new String[] {"kk1", "kk2"};
/* Todo junto, cortesía del compilador */
String kkk[] = {"kkk1"};