Array - not Arrrr aye
Posted in Personal on January 5th, 2009I’m working really hard trying to get this Java programming down. I spent about 3 or 4 hours last night at it as well. i was working on trying to get looping down. Looping in programming is just about the same as everyday life. It will continue with the same action until you or something else stops it, normally a condition is meet and the program moves on.
So after spending some time with FOR, WHILE, and DO WHILE loops, I moved in to BREAKS and CONTINUES. This got a little tricky. I was able to pick it up once the understanding of the why that they work registered in my head. Java has something different about breaking out of looks though. For the first time I used labels. That is right. You can label your loops as well. This might help with less commenting, but it is still a good idea to comment out the code, which I don’t do right now because I’m learning my my code is no more than about 50 lines, and not crazy.
Now on to Arrays. Though out all of the tid-bits of programming that I have done, I have always gotten to arrays and froze. I have never been able to move past them. My brother, helped me out a lot. Taking about an hour or 2 to explain how they work. Last night I was able to put that knowledge to good use. Putting things into an array, changing them, and getting the values our of an array were easy. even stating that the array was full of strings or integers was a snap.
I’m sure that I have a long way to go before I can call myself a programmer. I feel that I’m on a fast track though now that I have a major road block out of my way. Stupid Arrays.



