Java Month Name Get createDaemonThread(Runnable runnable, String threadName)

Here you can find the source of createDaemonThread(Runnable runnable, String threadName)

Description

Creates a daemon thread.

License

Apache License

Parameter

Parameter Description
runnable the runnable
threadName the thread name

Return

the thread

Declaration

public static Thread createDaemonThread(Runnable runnable, String threadName) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**/*from   ww w  . j  a v  a2  s.  co  m*/
     * Creates a daemon thread.
     *
     * @param runnable the runnable
     * @param threadName the thread name
     * @return the thread
     */
    public static Thread createDaemonThread(Runnable runnable, String threadName) {
        Thread daemonThread = new Thread(runnable, threadName);
        daemonThread.setDaemon(true);
        return daemonThread;
    }
}

Related

  1. getDutchMonthName(int monthNumber)
  2. getMonth(boolean name)
  3. getMonth(String monthName)
  4. getMonthByName(String monthName)