I must write method, which will get my string(showing hours separated with commas), and return ListProperty of Strings. In my constructor I have
this.showingHour = new SimpleListProperty<String>();
I wanted to use method from this topic: https://stackoverflow.com/a/7488676/4750111
List<String> items = Arrays.asList(str.split("\\s*,\\s*"));
But it will create ArrayList. Is there function like this, but for ListProperty?