📄 keyboardinput.ctxt
字号:
#BlueJ class context
comment0.target=class\ KeyboardInput
comment0.text=Class\ to\ handle\ keyboard\ input.\ Prompts\ for\ user's\ keyboard\ \ninput\ and\ converts\ input\ string\ into\ numbers.\ Picks\ up\ \nconversion\ errors.\n@author\ \ \ Jo\ Wood.\n@version\ \ 1.4,\ 30th\ May,\ 2001\n\n
comment1.params=
comment1.target=String\ readInput()
comment1.text=Returns\ a\ line\ of\ text\ input\ from\ standard\ input\ (usually\nthe\ keyboard).\n@return\ Line\ of\ keyboard\ input.\n\n
comment2.target=textLine
comment3.params=
comment3.target=char\ getChar()
comment3.text=Extracts\ the\ first\ letter\ of\ a\ string\ typed\ in\ on\ the\ \nkeyboard.\n@return\ First\ character\ extracted\ from\ keyboard\ input.\n\n
comment4.params=
comment4.target=String\ getString()
comment4.text=Extracts\ a\ string\ typed\ in\ on\ the\ keyboard.\n@return\ String\ extracted\ from\ keyboard\ input.\n\n
comment5.params=
comment5.target=int\ getInt()
comment5.text=Extracts\ an\ integer\ number\ from\ the\ keyboard\ input.\n@return\ Integer\ value\ extracted\ from\ keyboard\ input.\n\n
comment6.params=promptText
comment6.target=void\ prompt(String)
comment6.text=Prompts\ the\ user\ to\ type\ in\ something\ from\ the\ keyboard.\nUses\ standard\ input\ to\ gether\ input.\n@param\ promptText\ Message\ to\ prompt\ input\ with.\n\n
comment7.params=
comment7.target=double\ getDouble()
comment7.text=Extracts\ a\ double\ precision\ number\ from\ the\ keyboard\ input.\n@return\ Double\ precision\ value\ extracted\ from\ keyboard\ input.\n\n
comment8.params=
comment8.target=float\ getFloat()
comment8.text=Extracts\ a\ floating\ point\ number\ from\ the\ keyboard\ input.\n@return\ Floating\ point\ value\ extracted\ from\ keyboard\ input.\n\n
comment9.params=
comment9.target=KeyboardInput()
comment9.text=Creates\ a\ keyboardInput\ object\ that\ handles\ prompting\nand\ conversion\ of\ keyboard\ input.\n\n
numComments=10
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -