Re: [問題] ?:問題
※ 引述《justinC (無)》之銘言:
: ※ 引述《TonyQ (骨頭)》之銘言:
: : Java的 ?: 主要使用於傳值 , 而非執行動作.....
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: 主要就這句!
: 那像System.out.print應該就是傳回void?
: 因為我剛剛試了
: a=(a<1)?System.out.print("yes"):1;
println
public void println()
Terminate the current line by writing the line separator
string. The line separator string is defined by the system property
line.separator, and is not necessarily a single newline character ('\n').
http://java.sun.com/j2se/1.5.0/docs/api/java/io/PrintStream.html#println()
API 有說了 , 參考看看^^
--
String temp="relax"; | Life just like programing
while(buringlife) String.forgot(temp); | to be right or wrong
while(sleeping) brain.setMemoryOut(); | need not to say
stack.push(life.running); | the complier will
stack.push(scouting.buck()); | answer your life
stack.push(bowling.pratice()); | Bone everything
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.138.240.58
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 5 之 5 篇):
java 近期熱門文章
PTT數位生活區 即時熱門文章