User Tools

Site Tools


java:control_structures:if
click
to support this page (eg 0,42 € or so) Thanks.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

java:control_structures:if [2013/04/10 10:35]
94.223.12.247
java:control_structures:if [2013/04/10 10:35] (current)
94.223.12.247
Line 7: Line 7:
 check if a condition is true or false check if a condition is true or false
  
-=== for example === +===== example of if in java =====
-<code java> +
-        if  ( (name == "meier" || name == "müller") && place =="hamburg" )  { +
-            //if the name meier or müller & the place hamburg +
-        } +
-        if (! ( (name == "meier" || name == "müller") && place =="hamburg" ) ) { +
-            //if the name not meier or müller & the place not hamburg +
-        } +
-</code> +
- +
-===== example of if =====+
 <code java> <code java>
  
Line 50: Line 40:
  
 </code> </code>
 +
 +
 +=== a other example ===
 +<code java>
 +        if  ( (name == "meier" || name == "müller") && place =="hamburg" )  {
 +            //if the name meier or müller & the place hamburg
 +        }
 +        if (! ( (name == "meier" || name == "müller") && place =="hamburg" ) ) {
 +            //if the name not meier or müller & the place not hamburg
 +        }
 +</code>
 +
  
 === output if === === output if ===
advertising
java/control_structures/if.txt · Last modified: 2013/04/10 10:35 by 94.223.12.247

Impressum