Skip to content

Ever felt frustrated to create an object and input a string and then convert to the required type or experienced any issues while input. If so, this repo is just for you.

License

Notifications You must be signed in to change notification settings

RuthvikSaiKumar/Basic-Input-in-Java-simplified

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic-Input-in-Java-simplified

Ever felt frustrated to create an object and input a string and then convert to the required type or experienced any issues while input. If so, this repo is just for you.

Using

Using this is fairly simple. You don't even have to create the object of the class. Use the static functions for the inputs by :

int a = Input.inputInt();
char c = Input.inputChar();
double d = Input.inputDouble();
...

Sometimes you have to print something to ask for input, so here you can just pass that as a String argument for the function like :

int a = Input.inputInt("Enter a number : ");
...

Download

You can download this jar file from the source or from the releases

Hope you felt this useful. 😄

About

Ever felt frustrated to create an object and input a string and then convert to the required type or experienced any issues while input. If so, this repo is just for you.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages