Oppure semplicemente potresti fare: System.out.printf ("%s", e.getCodiceID());