Structures conditionnelles, boucles

Structures conditionnelles

L'instruction If

L'instruction If dote le langage Java de la possibilité d’exécuter une ou plusieurs instruction pourvue qu'une condition soit remplie. La syntaxe de cette instruction est :

if(condition){
                  Block d'instructions
                   }
else{
      Block d'instructions
      }

Leave a Reply

Your email address will not be published. Required fields are marked *