There is the following code. It is necessary to insert the resulting array into the Linked list ... = (
@FXML public void okBtnAction() { String massGet = elemNumbers.getText(); i = Integer.parseInt(massGet); ArrayList massive = new ArrayList(); //Заполняем массив случайными числами for (int x = 0; x < i; x++) { massive.add(x, (int) (Math.random() * 100)); } 