printstream.println()的作用是什么?

powerchuangwai 2010-09-16 11:15:54
printstream.println()的作用是什么?

可以从某个端口 写数据吗?
...全文
136 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
lyjxaut 2011-12-04
  • 打赏
  • 举报
回复
可以往里写的
Sid_du_ 2010-09-16
  • 打赏
  • 举报
回复
void println()
Terminates the current line by writing the line separator string.
void println(boolean x)
Prints a boolean and then terminate the line.
void println(char x)
Prints a character and then terminate the line.
void println(char[] x)
Prints an array of characters and then terminate the line.
void println(double x)
Prints a double and then terminate the line.
void println(float x)
Prints a float and then terminate the line.
void println(int x)
Prints an integer and then terminate the line.
void println(long x)
Prints a long and then terminate the line.
void println(Object x)
Prints an Object and then terminate the line.
void println(String x)
Prints a String and then terminate the line.
powerchuangwai 2010-09-16
  • 打赏
  • 举报
回复
可以往端口 写数据吗?
zhuweiping2003 2010-09-16
  • 打赏
  • 举报
回复
PrintStream类中的println方法是打印出文本信息
copy自:
http://zhidao.baidu.com/question/51736225.html

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧