Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
Zeim
Zeim's Profile
2
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
Reverse string array
[7 Replies]
27-Aug-2013 09:41 PM
Forum:
Programming Questions
I'm trying to learn how to program and I'm wondering how to reverse my string array. Here's my code so far.
String[] words = {
"if", "you", "have", "a", "set", "of", "bad", "eggs", "it's",
"likely", "you", "get", "a", "bad", "omelet"
};
int x = 30;
int wordSpacing = 22;
void setup() {
size(200, 280);
noLoop();
}
void draw() {
for (int i = 0; i < 10; i++) {
text(words[i].toUpperCase() + ": " + words[i].length() + " letters.", 10, x);
x = x + wordSpacing;
}
}
Method pointer while loop
[3 Replies]
26-Aug-2013 04:02 AM
Forum:
Programming Questions
I've been trying to figure out how to do a second line from the bottom left to the top right
in this code that intersects the one in my while loop.
int i = 0;
while (i < 1000){
i = i+1;
if (i < width){
if (i < height){
point (i,i);
}
}
}
«Prev
Next »
Moderate user : Zeim
Forum