Per quanto riguarda il tuo terzo post il problema è che non hai gestito l'eccezione IO. O fai cosi
o fai cosicodice:public static void main (String args[]) throws Exception
codice:try { // tuo codice } catch (IOException ex) {ex.printStackTrace();}

Rispondi quotando