Help with Explanation Java Edit Variable

#1

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

Thank you very much

0 Likes

#2

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:
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html

2 Likes