GMgKe586q6suSQnyqZLlGCooeWM
Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
Home
Me
Search
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;
}
Function In JavaFX
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment