applicationlinein.java

来自「几个JAVA小程序」· Java 代码 · 共 19 行

JAVA
19
字号
import java.io.*;

public class ApplicationLineIn
{
	public static void main(String args[])
	{
	  	String s="";

		System.out.print("please enter a string:");
		try
		{
			BufferedReader in = 
			new BufferedReader(new InputStreamReader(System.in));
			s = in.readLine();
		}catch(IOException e){	}
	System.out.println("You've entered string: " + s);
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?