JSP: Tester si un nombre est positif

  
    Using Compound Statements
  
  
    

Using Compound Statements

     0) {             out.println("The number was positive.");                             out.println("Absolute value of " + value + " = " + value);         }     %>                       

Cet article JSP: Tester si un nombre est positif est apparu en premier sur .

JSP: Conditon avec switch en jsp

                break;
            case 66:
            case 67:
                out.println("Nice!");
                break;
            case 70:
            

Cet article JSP: Conditon avec switch en jsp est apparu en premier sur .

JSP Boucle for: utilisation de deux index

  
    Using Two Loop Indexes
  
  
    

Using Two Loop Indexes

    <%         for (int i = 0, doubleIndex = 0; i <= 10;             i++, doubleIndex = 2 * i) {             out.println("i: " + i +                 " doubleIndex: " + doubleIndex + "
");         }     %>                       

Cet article JSP Boucle for: utilisation de deux index est apparu en premier sur .

JSP: Utilisation de la boucle while pour trrouver une factorielle

  
    Finding a Factorial
  
  
    

Finding a Factorial

     0) {             factorial *= temporaryValue;             temporaryValue--;         }         out.println("The factorial of " + value + " is " + factorial + ".");     %>                       

Cet article JSP: Utilisation de la boucle while pour trrouver une factorielle est apparu en premier sur .

JSP: Exemple d’utilisation du moé clé « break » en jsp

  
    Using the break Statement
  
  
    

Using the break Statement

    <%         double array[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};         int sum = 0;         for(int i = 0; i  12) break;             out.println("Looping...
");         }         out.println("The sum exceeded the maximum allowed value.");     %>                       

Cet article JSP: Exemple d’utilisation du moé clé « break » en jsp est apparu en premier sur .