D
dolly
Gast
Hi
wie clont man Objekt? Klar mit clone aber bei mir ist das nie sichtbar.
public class test {
public Object obj1;
public Object obj2;
public void copy()
{
obj1 = new String();
obj2 = new String();
obj1 = obj2.clone()// Methode nicht Sichtbar
}
}
Vielen Dank für eure Antworten
Schöne Grüße
wie clont man Objekt? Klar mit clone aber bei mir ist das nie sichtbar.
public class test {
public Object obj1;
public Object obj2;
public void copy()
{
obj1 = new String();
obj2 = new String();
obj1 = obj2.clone()// Methode nicht Sichtbar
}
}
Vielen Dank für eure Antworten
Schöne Grüße