function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Girbson Bijou 8Girbson Bijou 8 

Send Generic Type to TextArea Field Java FX

How can i display the result of the following method in a JavaFX TextArea Field instead of using print. when i use 
taf.appendText(printPreOrderRec(root));
Where taf is an instance of TextArea, i get an error saying that void type not allowed here.
below is the Method , i want to display the result in taf. I want to notice that BSTNode is a Comparable.
private static void printPreOrderRec(BSTNode currRoot) {
    if (currRoot == null) {
        return;
    }
    System.out.printf("%d ", currRoot.data);
    printPreOrderRec(currRoot.leftNode);
    printPreOrderRec(currRoot.rightNode);
}

 
SwethaSwetha (Salesforce Developers) 
HI Girbson,
Salesforce developers Forum is geared towards programming troubleshooting and support of salesforce related issues.
I recommend posting your ask on JavaFX Forums at https://stackoverflow.com/questions/tagged/javafx for the right visibility and faster response.

If this information helps, please mark the answer as best.Thank you
gbfdh gbfdhsggbfdh gbfdhsg
Is this good idea to use JAVA program to add the feature of filter out in any business website? I want to add in my local meat shop website of the shed abilene (https://theshedabilene.com/).