Not able to fetch the required value from try vavr String in java 8

Viewed 23

I am new to java 8 and not able to get the solution for the below issue . Below is the my code .I am trying to parse an xml and storing the result in list. From the list I want to fetch the value of txid ,amount and date .But when I tried to get it the result is coming as below. Inside txid all the value are coming but I just want to get the value one by one . Please help me to resolve it .

Expected result: txid=24, amount=33.00,date=01-07-2022

public try<List<T>> parser(byte[] inputFile)
{`my parser logic and returning list`

}
    List list =Collections.singletoneList(xmlParser.parser(byte));
    String txid=String.valueOf(list.get(0));  
    // output coming  txid  ="success([txid_24,amount_33.00, date_01-07-2022])

;

0 Answers
Related