public String getFotoSelezionata() { HotelDTO h = getHotelPerParametro(); switch (numeroFoto) { case 1: return h.getFoto1(); case 2: return h.getFoto2(); case 3: return h.getFoto3(); default: return ""; } }