Magazine
 
Quick Review:JavaFX
 
Working with JavaFX Classes and Objects

v) Using ‘if’ expression:

Using ‘if’ expression is similar to the java programming language.

The syntax is like as below:

if (condition) {
……………
//Statement1
//Statement2
……………
} else if (condition) {
.…………...
//Statement1
//Statement2
…………..
} else {
…………..
//Statement1
//Statement1
……………
}

vi) Using while expression:

Using while expression is similar to the java programming language but curly braces are required with this statement.

The syntax for using while:

while (condition){
…………….
//Statement1
//Statement2
…………….
}

vii) Operators:

Most of the JavaFX operators are as in Java Programming Language. In the table below, operators are listed by precedence and also compared to the Java Programming Language.

Aug 2008 | Java Jazz Up | 22
 
previous
index
next
 
 
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,

30
, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,

58, 59, 60, 61, 62, 63 Download PDF