Geeks With Blogs
Daniel Forhan Computer Science Teacher and Java Programmer December 2005 Entries
Java Puzzle
Today four of my students are competing in a programming contest at Fitchburg State College (MA). Since I cannot interact with them during the competition I have had a little time to catch up on some of the blogs/newsletters that I enjoy reading (and update my blog). One thing I came across this morning was a neat Java puzzle from one of my favorite Java sources, the The Java Specialists' Newsletter . This probably falls under the expert category. The result is a little surpising, and interesting ......

Posted On Friday, December 2, 2005 7:42 AM

Arrays: Copy vs. Clone
Occasionally when working with an array is may be useful to make a copy of that array. What might not be apparent is that by making a copy of an an array there are implications that can cause unintended side-effects if one isn’t aware of what actually happens when a simple copy the array is made. For instance let’s consider: int [] numbers = { 2, 3, 4, 5}; int [] numbersCopy = numbers; The “numbersCopy” array now contains the same values, but more importantly the array object ......

Posted On Thursday, December 1, 2005 4:57 PM

Copyright © Daniel Forhan | Powered by: