how to make for loop for buttons in easy way?
<p>As it is my first application in javafx and trying to make a simple calculator. I want to know how I can make this for loop in easy way :</p>

<pre><code>for(int i=1; i&lt;10; i++){
    Button bt1 = new Button();       
    bt1.setText("1");    
    bt1.setOnAction(new EventHandler&lt;ActionEvent&gt;() {
        @Override 
        public void handle(ActionEvent event) {
            System.out.println("1");
        }
    });
    i 1;
}
</code></pre>

<p>And how to get this buttons in <code>VBox</code>.</p>