I'm trying to experiment with deep copying since our professor told us to do so. He gave us a snippet of codes but once I typed it in netbeans, it won't work...
Could someone help me explain the concept of deep copy through these codes?
int i;
String [] original = {"Aref","Ali","Emad","Sami"};
String [] result = new String(original.length);
for(i=0;i<original.length;i++){
result[i] = (String) original[i].clone();
}