Tag Archives: object oriented

Implementing a deep clone using private copy constructors in Java

One of the drawbacks of Java is that there is no quick-and-easy way to copy an object into a new memory location. The Object class has a clone() method, but this method will not perform a complete memory location copy of that object. If the object being cloned has any references to other [...]


Posted in Uncategorized | Also tagged | 3 Comments

Unique ArrayList

Eric’s post about the LinkedHashSet got me thinking about some code I’ve recently written to provide an ArrayList that operates like a set. I wasn’t aware of the LinkedHashSet, but I think I implemented something with similar functionality called a UniqueArrayList. It looks very simple:

public class UniqueArrayList extends ArrayList {
[...]


Posted in Uncategorized | Also tagged , | Leave a comment

I’m in Fortran translation Hell

I learned a lot more low-level concepts because I started programming in Fortran77 before Java. It taught me about some key computer science subjects that were not taught in my CIS curriculum in school. So I have an affinity for the ancient language. But lately I’ve been translating some old Fortran77 code [...]


Posted in Uncategorized | Also tagged , | 4 Comments
Check out the latest GroovyMag to see an interview with me about the 1.1 release of GrailsUI: