Java,什么是std?

时间:2017-02-19 19:04:15

标签: java netbeans input output std

您好我知道这是基本的,但我需要编写和测试这个问题的解决方案,我不明白什么是std。 Senario问题如下。

  

用户应该从单独的行输入std in中的4个单词,这些单词应该打印出来std out

有人可以帮助我如何在网络豆中编码吗?

3 个答案:

答案 0 :(得分:1)

“std out”表示System.out “std in”表示System.in “std err”表示System.err

答案 1 :(得分:0)

stdinstdoutstderr是一个文本输入流的传统名称和两个文本输出流,它们在启动时提供给每个Unix程序。程序应该从stdin读取其输入(如果其命令行参数不指示它从其他源读取),并且期望将其输出写入stdout。如果程序的用户消息不属于正常输出,则应将其写入stderr

stdinstdoutstderr的想法从Unix传播到MS-DOS和Linux以及其他操作系统。

在Java中,System.in通常连接到stdin流,System.out连接到stdout流,System.err连接到stderr流。

答案 2 :(得分:0)

标准输入(stdin)

阅读此https://en.wikipedia.org/wiki/Standard_streams