Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
public void sendeNamen(String[] spielername)
{
try
{
out.println("empfangeNamenListe");
for(int i=0; i<anzahl;i++)
{
out.println(spielername[i]);
}
}
catch(Exception e)
{
System.out.println("Konnte Liste nicht senden!");
}
}
Der Client empfängt das so:
public void empfangeNamen()
{
for(int i=0;i<anzahl;i++)
{
try
{
name[i]=in.readLine();
}
catch(Exception e)
{
System.out.println("Fehler: " + e.toString());
}
}
hatNamen=true;
public void empfangeNamen()
{
for(int i=0;i<anzahl;i++)
{
try
{
name[i]=in.readLine();
Thread.sleep(200); <----------------------Problem gelöst
}
catch(Exception e)
{
System.out.println("Fehler: " + e.toString());
}
}
hatNamen=true;