📄 chapter4n1.java
字号:
/* * program to demonstrate input with the "BasicIo" class */import java.lancs.* ;public class Chapter4n1 { /* * main */ public static void main(String[] args) throws Exception { // read in and output a String BasicIo.prompt("please type in a string ") ; String string1 = BasicIo.readString() ; System.out.println("the string you typed was **" + string1 + "**") ; System.out.println() ; // read in and output an integer BasicIo.prompt("please type in an integer ") ; int intValue = BasicIo.readInteger() ; System.out.println("the integer you typed was " + intValue) ; } // end of method main } // end of class Chapter4n1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -