Hash table in version 1.5.0_06

Hi! I'm trying to compile this code and get the message "<identifier> expected" in the first line of the method, I was given the code and it is already tested and in production working fine, could be the problem that my java version is 1.5 and does accept this kind of hashtable declaration?

public Hashtable<Integer, String> dividirBDD(String nomVar,boolean guardarADisc)throws CreacioMatriuException, CreacioPropietatsException, IOException{

GestorMatriu[] matrius = matriusCarregades[matriuActual].dividirBDD(nomVar);

int l = matrius.length;

Hashtable<Integer, String> res =new Hashtable<Integer, String>();

if ((guardarADisc && numMatriusOcupades < maxMatrius) || numMatriusOcupades < maxMatrius - l){

int p = matriuActual +1;

for (int i = 0; i < l; i++){

if(null != matrius[i]){

while (matriusCarregades[p] !=null){

p = ++p % maxMatrius;

}

matriusCarregades[p] = matrius[i];

LlistaObjectes llObj = matriusCarregades[p].obtenirLlistaObjs();

if (llObj.obtenirLong() > 0){

String domVarValue = matriusCarregades[p].obtenirValorVariable(nomVar);

if (guardarADisc){

String fileName = matriusCarregades[p].obtenirNomMatriu() +"_" + domVarValue;

File tmpFile =new File(fileName);

fileName = tmpFile.getParent() + matriusCarregades[p].obtenirDirResultats() + tmpFile.getName();

matriusCarregades[p].desarMatriu(fileName);

matriusCarregades[p] =null;

}else{

String matrixName = matriusCarregades[p].obtenirNomMatriuRelatiu() +"_" + domVarValue;

res.put(p, matrixName);

p++;

numMatriusOcupades += 1;

}

}

}

}

}else{

logger.warning("No es pot dividir la BDD perque s'ha escedit el nombre mxim de matrius.");

thrownew CreacioMatriuException(

"No es pot dividir la BDD perque s'ha escedit el nombre mxim de matrius.");

}

return res;

}

[3304 byte] By [drholidaya] at [2007-11-27 11:19:50]
# 1

Hashtable using generics was available in java 1.5. Are you sure that you are compiling with java 1.5 and not 1.4? Are you using an IDE? Have you checked your compiler setting on the IDE?

petes1234a at 2007-7-29 14:39:02 > top of Java-index,Java Essentials,Java Programming...