作者TonyQ (骨头)
看板java
标题Re: [问题] ?:问题
时间Mon Jun 19 19:44:36 2006
※ 引述《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