Difference entre deux années differentes

je cherche comment convertir deux années différentes en nombre et calculer la differences.
merci

1 réponse

  1. c'est à dire ?
    convertir une chaîne string "2013" en integer 2013 ?

    String str = "2013";
    int annee = Integer.parseInt(str);