ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ
sollte aber die Ausgabe
AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZ
liefern.
Wo liegt der Fehler?
MehrmalsP.java
Code (Text):
public class MehrmalsP
{
public static void main(String[] args)
{
ABCThread t1 = new ABCThread(), t2 = new ABCThread();
t1.start();
t2.start();
}
}
{
public static void main(String[] args)
{
ABCThread t1 = new ABCThread(), t2 = new ABCThread();
t1.start();
t2.start();
}
}
Code (Text):
public class...
Threads funktionieren nicht
0 commentaires:
Enregistrer un commentaire