Java tutorial
//package com.java2s; public class Main { public static Thread createThread(Runnable runnable) { return createThread(runnable, runnable.getClass().getSimpleName()); } public static Thread createThread(Runnable runnable, String threadName) { return new Thread(runnable, threadName); } }