Help with Explanation Java Edit Variable

Hi Everyone
i Need a help , Can anyone explain that to me?

Thank you very much

This is more of a java question than KNIME related but:

The first line finds the position of the last slash in some url in a flow variable named URL.

For example:
URL = foo://bar/this_is_a_medium_long_string
i = 9

This i is used as an offset in the second line to create some new name based off of characters after the last slash. If my counting is correct the node would produce a new flow variable named “newname” with a value of “this-ium_”.

Hava a look at the java documenation for the class String:


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.