il metodo read() del System.in richiede in ingresso un'array di byte... tu che gli hai passato? cioè... che è cont?