Sunday, November 14, 2010
Reflection 11/14
This week we worked on For Loops, which are lines of code that run themselves until a certain requirement is met. The for loop establishes the first value, the stop value, and the change in the value at which the code is terminated. This is useful for repeating things without having to retype code over and over again. This cuts down the time coders spend copying and pasting, and changing little bits of code. Parts of Java like this make the language simpler and more user friendly. I really enjoyed the lab where we used For Loops to draw a certain number of circles and then stop the program. We could change the x and y values of the circle each time it was drawn and the width/length, making it a fun tool to draw with.
Labels:
11,
14,
for,
loops,
reflection
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment