Class Input
java.lang.Object
Input
Input class - to have popup boxes for users to type data
Modified from North Toronto Collegiate Institute, Gerry Heffernan: https://ntci.on.ca/compsci/hef/ics3/ch1/1_4.html
-
Constructor Details
-
Input
public Input()
-
-
Method Details
-
question
Generates a pop-up question on the Screen- Parameters:
questionText
- String prompt for the user (Hint: Use new line escape characters (\n) in your String if it is too long to fit neatly into the box.)- Returns:
- a String with the Adventurer's answer
-
getString
-
getInt
-
getLong
-
getFloat
-
getDouble
-
getChar
-