URL: https://linuxfr.org/forums/programmation-java/posts/n00b-caster-un-int-en-boolean-et-inverse Title: [n00b] caster un int en boolean et inverse ? Authors: Nicolas Blanco Date: 2005年09月21日T11:17:15+02:00 Tags: Score: 0 salut ! tout est dans le sujet... int b = 1; boolean a = (boolean)b; boolean c = true; int d = (int)c; Z:\mai_rezo.java:15: inconvertible types found : int required: boolean boolean a = (boolean)b; Z:\mai_rezo.java:17: inconvertible types found : boolean required: int int d = (int)c; Merci ! ps : revenir au java apres 2 ans c'est dur :).