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) {

        final IntegerProperty width = new SimpleIntegerProperty(10);
        final IntegerProperty height = new SimpleIntegerProperty(10);

        NumberBinding area = width.multiply(height);

        System.out.println(width.get() + " " + height.get());
        System.out.println(area.getValue());

        width.set(100);
        height.set(200);

        System.out.println(width.get() + " " + height.get());
        System.out.println(area.getValue());
    }
}