RE:PORFA AYUDA:::::::::NO HE SIDO CAPAZ::::
int[][] matriz = {{15,38,20,19,31},
{0,-3,6,99,42},
{2,7,8,3,0},
{88,22,7,-1,0},
{38,8,9,10,11}};
Vector diferentesElementos = new Vector();
int[] cuenta = new int[matriz.length*matriz[0].length];
for(int i=0; i<matriz.length; i++)
for(int j=0; j<matriz[i].length; j++) {
if(!diferentesElementos.contains(matriz[i][j])) {
diferentesElementos.add(matriz[i][j]);
cuenta[diferentesElementos.size()-1] = 1;
}
else {
int ind = diferentesElementos.indexOf(matriz[i][j]);
cuenta[ind]++;
}
}
System.out.println("Elementos no repetidos en la matriz");
for(int k=0; k<diferentesElementos.size(); k++) {
if(cuenta[k] < 2)
System.out.println(diferentesElementos.elementAt(k)+" "+cuenta[k]);
}