[package] [Java implementation] [Execution output]


ChainedFields2


import javax.swing.JButton;

void: main(String[]: args) = {
    i1 = JButton.new().getPreferredSize().width;
    output << "i1 = " << i1 << "\n";

    i2 = java.awt.Button.new().getBounds().x;
    output << "i2 = " << i2 << "\n";
}