StringList beginners
in
Programming Questions
•
2 months ago
Hi
I've just started to learn processing.
I try to make simple exercise with StringList
StringList fruit_list= new StringList();
fruit_list.append("apple");
fruit_list.append("tomato");
fruit_list.append("banana");
fruit_list.remove(1);
fruit_list.append("orange");
println(fruit_list);
It is ok, but how can I construct StringList without append?
StringList fruit_list= new StringList();
fruit_list=("apple","tomato",banana");
fruit_list.remove(1);
fruit_list.append("orange");
println(fruit_list);
That is not working.
By the way how can I print only second string from the StringList?
println(fruit_list(1));
Is of course not working.
Thank you very much
mamazur
1