First open the SimpleInput.java
Steps:
Open Dr. Java..
File >Open > SimpleInput.java..
Compile..
Main(). . .
SimpleInput sInp = new SimpleInput();
int x = sInp.getInt("Please Enter an integer");
float y = sInp.getFloat("Please Enter a float");
String z = sInp.getString("Please Enter an string");
boolean p = sInp.getBoolean("Please Enter a
boolean");
char c = sInp.getChar("Please Enter an char");
Remember: When you use SimpleInput Method, save your file in the same folder in where you have kept your SimpleInput.java File
No comments:
Post a Comment