PTT
數位生活區
即時熱門文章
24小時內熱門文章
最新文章
熱門看板
看板列表
我的收藏
最近瀏覽
批踢踢 PTT 搜尋引擎
看板
[
java
]
討論串
[問題] static method
共 8 篇文章
排序:
最新先
|
最舊先
|
留言數
|
推文總分
內容預覽:
開啟
|
關閉
|
只限未讀
首頁
上一頁
1
2
下一頁
尾頁
#3
Re: [問題] static method
推噓
0
(0推
0噓 0→
)
留言
0則,0人
參與
,
最新
作者
qrtt1
(隱者)
時間
19年前
發表
(2006/06/19 17:40)
,
編輯
資訊
0篇文章回應此文
0
內文有0個圖片
image
0
內文有0個連結
link
0
內容預覽:
因為你沒有正確產生test物件, 所以不能呼叫test的方法. public class test {. public static void main(String args[]) {. System.out.print(new test().more(2, 4, 4, 4));. }. publ
#2
Re: [問題] static method
推噓
0
(0推
0噓 0→
)
留言
0則,0人
參與
,
最新
作者
hpeter
(hpeter)
時間
19年前
發表
(2006/06/19 17:39)
,
編輯
資訊
0篇文章回應此文
0
內文有0個圖片
image
0
內文有0個連結
link
0
內容預覽:
小弟覺得 因為被 static function 用到的東西. 一定要有static 之修飾. --.
※
發信站:
批踢踢實業坊(ptt.cc)
. ◆ From: 163.25.101.82.
#1
[問題] static method
推噓
0
(0推
0噓 0→
)
留言
0則,0人
參與
,
最新
作者
justinC
(無)
時間
19年前
發表
(2006/06/19 17:33)
,
編輯
資訊
0篇文章回應此文
0
內文有0個圖片
image
0
內文有0個連結
link
0
內容預覽:
public class test {. public static void main(String args[]) {. System.out.print(more(2,4,4,4));. }. public static int more(int... num). {. int total=0
(還有14個字)
首頁
上一頁
1
2
下一頁
尾頁