INPUT:
System.out.println(Thread.currentThread().getName();
if(Thread.currentThread().getName()=="main")System.out.println("curent thread"));
OUTPUT:
main
//"if" se neprovede, a nevím proč
TIP: Přetáhni ikonu na hlavní panel pro připnutí webu
INPUT:
System.out.println(Thread.currentThread().getName();
if(Thread.currentThread().getName()=="main")System.out.println("curent thread"));
OUTPUT:
main
//"if" se neprovede, a nevím proč

© 2003–2025 Programujte.com