12 lines
366 B
Java
12 lines
366 B
Java
|
import java.util.*;
|
||
|
|
||
|
public class Main {
|
||
|
public static void main (String[] args){
|
||
|
Map<Thread,StackTraceElement[]> dico =Thread.getAllStackTraces();
|
||
|
Set<Map.Entry<Thread,StackTraceElement[]>> tab=dico.entrySet();
|
||
|
Iterator ite=tab.iterator();
|
||
|
for (;ite.hasNext();){
|
||
|
System.out.println(ite.next()+"\n");
|
||
|
}
|
||
|
}
|
||
|
}
|