Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import javafx.beans.binding.NumberBinding;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;

public class Main {
    public static void main(String[] args) {
        // Area = width * height
        IntegerProperty width = new SimpleIntegerProperty(10);
        IntegerProperty height = new SimpleIntegerProperty(10);
        NumberBinding area = width.multiply(height);
        System.out.println(area.getValue());
    }
}