continuation tp2 Java