public Cosa[] getCosa(String nomeCosa){

try{
String nome = nomeCosa;
Cosa[] arr = new Cosa[2];

return arr;

} catch (Exception e){

System.out.println("Errore!");

}

}


mi dice:
This method must return a result of type Cosa[]


perchè?

il tipo che restituisco è giusto...forse un problema del try catch?