Vous n’êtes pas connecté.
![]() |
Code source |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
public boolean equals(Object anObject) { if (this == anObject) { return true; } if (anObject instanceof String) { String anotherString = (String)anObject; int n = count; if (n == anotherString.count) { char v1[] = value; char v2[] = anotherString.value; int i = offset; int j = anotherString.offset; while (n-- != 0) { if (v1[i++] != v2[j++]) return false; } return true; } } return false; } |
Citation de "Y0Gi"
Und das Abgreifen von bestehendem Code fällt sicher nicht unter "schreib diese Methode selbst"
Citation de "Y0Gi"
Irgendwer hat hier das Lernziel noch nicht verstandenUnd das Abgreifen von bestehendem Code fällt sicher nicht unter "schreib diese Methode selbst", sondern kann durchaus als Plagiatismus und mit 0 Punkten gewertet werden.
Citation
-Joker-: Auf dich hatte ich mich gar nicht bezogen.
-