程式筆記
JAVA多執行續簡單範例
public
class
ThreadTest2
{
public
static
void
main
(
String
[]
args
){
HelloThread
t1
=
new
HelloThread
();
t1
.
setName
(
"T1"
);
t1
.
start
();
System
.
out
.
println
(
"可用執行續:"
+
Thread
.
activeCount
()
+
"條"
);
}
}
來源:猛虎出閘雙劍合璧版
較新的文章
較舊的文章
首頁
Windows 10 常用快捷鍵
Windows有很多好用的快捷鍵,使用不僅快速省力又省時,而且還可以節省一些腦容量去記一些設定的位置。 「Ctrl + N」或「Windows鍵 + E」開新資料夾 「Alt + D」選取路徑 「Ctrl + N」開啟新的檔案總管視窗 「Ctrl + W」關閉目前視窗 「Alt ...
Carbon常用功能
Laravel的Carbon日期套件非常好用(比手刻的或另外載入的日期套件好幾百倍),但是常有一些功能會忘記如何使用,在這邊紀錄常用的Method 取得當月第一天 Carbon :: now ()-> startOfMonth ()-> format ( 'Y...