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č
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č