Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
(Move to ...)
Home
Me
▼
Wednesday, December 22, 2010
Function In JavaFX
Function concept in JavaFX is so simple like in Javascript:
function hello(name:String){
println("Hello, {name}!");
}
To call it, use:
hello("Lady Gaga");
Other samples:
function add(x:Integer,y:Integer){
println("Add: {x} + {y} = {x+y}");
}
function add(x:Integer,y:Integer){
return x+y;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment