could some body please tell me how to clone a simple integer array? Do i have to construct a class that implements cloneable thanks. ------------------ regards Ciaran
If you really need to use the clone method, I believe you will have to do some manual construct, but otherwise there's the handy System.arraycopy() // Jesper
No you do not have to. Array implements interface Cloneable. You just have to call clone on your array: int firstArray[] = { 0,1, 2, 3, 4 }; int secondArray[] = (int[])firstArray.clone(); W.
Don't get me started about those stupid light bulbs.