Ich verstehe die Lösung der folgenden Aufgabe nicht:
Gegeben sei das folgende Programm:
Code (Java):
public class RateMal {
public static void ausgabe(Object... eingabe) {
System.out.print("Ausgabe: ");
for(Object o : eingabe)
System.out.print(o + " ");
System.out.println();
}
public static <T extends Comparable> T[] tueWas(T... eingabe) {
eingabe = eingabe.clone();
for(int i = eingabe.length - 1; i > 0; i--)
for(int j = 0; j < i; j++)
if...
Verstehe die Lösung einer Aufgabe von Grunkurs-Java nicht.
0 commentaires:
Enregistrer un commentaire