max of two columns Java Snippet

Hi there I am trying to calculate the max value of two columns using the Java Snippet node since I am using it to calculate two string similarity measures.

With the help of the forum members I managed to calculate the two measures separately, but I cannot “merge” both results in a single node.

The final desired output is the following:

The code used is this one:

Cheers

Jaccard + RO Forum.knwf