Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
mamazur
mamazur's Profile
1
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
StringList beginners
[7 Replies]
21-Jul-2013 07:37 PM
Forum:
Programming Questions
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
«Prev
Next »
Moderate user : mamazur
Forum