import java.util.*; public class Q1Main{ public static void main(String args[]){ Map listeThreadNul = Thread.getAllStackTraces(); Set> listeThread = listeThreadNul.entrySet(); for (Map.Entry thread : listeThread) { Thread clef = thread.getKey(); StackTraceElement[] valeur = thread.getValue(); System.out.println(clef.getName() + ":"); for (StackTraceElement item : valeur){ System.out.println(" " + item); } System.out.println(); } } }