一、控制台输入
import java.util.Scanner;
public class JavaTest
{
public static void main(String[] args)
{
System.out.println("Hello My First Java Program!");
System.out.println("Input string from console is:"+strReadString("Please Input A String:"));
}
private static String strReadString(String strPromptIn)
{
Scanner Scanner=new Scanner(System.in);
System.out.print(strPromptIn);
return Scanner.nextLine();
}
}
To Be Continued!