Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static String getThreadInfo(Thread thread) { String info = String.format("id:%s, Name:%s, State:%s , Status:%d", thread.getId(), thread.getName(), thread.getState(), thread.getPriority()); return info; } }