Programming in JAVA now became easy and joyful with EasyIO - which is a JAVA package intended to provide ease for programmers to get input and output, beautiful colors in the terminal and also easy data type casting. Specially created for beginners, yet useful for professionals.
- Download the repository, better to be in .ZIP format.
- Unzip it and add into your own project directory.
- Import it. That's it.
-
Before starting must import respective.
-
For EasyIO.pyStyle package, import as:
// At top, must import this with "static" keyword import static EasyIO.pyStyle.*;
-
For EasyIO.cStyle package, import as:
// At top, must import this with "static" keyword import static EasyIO.cStyle.*;
USING EasyIO.pyStyle PACKAGE
-
These methods will print what ever is written within circular brackets.
-
String must be Written with Double Quotes(" ").
-
" + " Operator is used to concatenate String and to Separate Variables.
-
If user wants Next print Statement within a same line so,he can Enable(true) By writing "true" as second argument.Example,
// At top, must import this import static EasyIO.pyStyle.*; ... ... print("One line ",true); print("Second line"); // Output: One line Second ...
USING EasyIO.cStyle PACKAGE
-
Can use C Style printing values as described below.
-
Refer Sample_cStyle.java. Soon you'll get familiar with it.
-
Can use in following ways:
// At top, must import this import static EasyIO.cStyle.*; ... ... // Printing Numbers With And Without Formatting print("number is 32"); print("number is %d",number); print('p',"number is %d (this line is in purple color)",number); ...
USING EasyIO.pyStyle PACKAGE
-
All of these methods used to accept input from front end user.
-
User can give description.It is the guidelines for the user.
-
If user wants Description and input in a single line then he can Enable(true)the Single line method.
// At top, must import this import static EasyIO.pyStyle.*; ... ... String str = input() ; String age = inputInt("Enter your age"); ...
USING EasyIO.cStyle PACKAGE
-
Can use C Style input output methods as described below.
-
Refer Sample_cStyle.java. Soon you'll get familiar with it.
-
Can use in following ways:
... // At top, must import this import static EasyIO.cStyle.*; ... ... // Getting Numbers With And Without Formatting int number = get_int("Enter the number"); int number = get_int('r',"Enter the number (this line is in red color)"); int number = get_int('y',"Enter the number %d times (this line is in yellow color)",2); ...
ONLY USING EasyIO.pyStyle PACKAGE
-
All Type casting Methods has first Letter Capital.
-
Type casting is done with String, Integer, Double, Long, Float data types.
// At top, must import this import static EasyIO.pyStyle.*; ... ... int age = Int(args[1]); ...