Trying to describe in a JavaFX project the work of an increment loop on a TextField and TextArea nodes with an array of integers, I got to output each step of this increment.
As a short illustration, let’s say we have a tiny array of strings 6, 2, 74, 64 and 12. Used inside our for loop, an AppendText method immediately displays a final full array of integers while what I need is to show how my array gradually grows and how integers pop up one by one, at first 6, then 2 and so on until we obtain a complete array. Just as we can do it in console.
I am looking for an information on how to realize this in JavaFX or what to learn to be able to do it.
Any concrete, kind and illustrative advises would be mostly welcome.
Update: My question was marked as a possible duplicate of another question.
On this subject note please that what I expected was to reproduce a gradual display of JavaFX array and nothing else, not to update one single element of the array, as was asked in another question whose duplicate my own thread is suspected to be. Updating of one element and updating of the whole array of elements, will these things sound the same ("duplicate") to anybody?
So:
A. As explained above, our questions are different;
B. It is doubly wrong to declare my question a duplicate because its answer makes use of the same concept (Task class) as does the answer to another question, otherwise we could also mark my question as duplicate to all other stack overflow threads, comments from which I used to find myself a solution to my question (for example the one on initialization and the use of Strings assigned to Arrays in and outside Java loops, the link to that thread being available on request).
Questions and answers are well understood to be independent parts of human dialectics, i.e. similarity of answers (especially only a partial one, what was the case with my answer) in no way leads to a similarity of questions.
PS: Please understand questions before marking them as duplicates.
PS2: The question is already solved, but to comply with this site's rules I'll respect 48 hours limit before accepting the answer.