Java snippet to create numeric range or Collection of strings
Hi,
I have spent the Sunday, so far, trying to create a numeric range with the help of Java Snippet. I know there is “Create Numeric Range” node made in 2023, that works but I hesitate - what if it somehow becomes obsolete?!
I have tested like 20 different suggested methods by using K-AI and CoPilot, but even if I state it is for KNIME AP 5.5.0 (it didnt work yesterday with a previous version released a few months ago) - however the directions are misleading and ends in red wavy-underlining.
In the latest code provided by K-AI, underneath there are some strange comments in K-AI:
In the “Output” section, declare a variable named yourStringOutput of type Object or Collection. Use the same name in your code to assign the list
The problem lies in that there is no option for Object or Collection in the dropdown list. So I just choose List and checked array.