Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #8

Merged
merged 1 commit into from
Oct 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions EasyIO/pyStyle.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,80 +89,80 @@ public static String input(String decs,boolean oneLine) //input string with De
String str = a.nextLine();
return str;
}
public static int insertInt() //input Integer
public static int inputInt() //input Integer
{
Scanner a = new Scanner(System.in);
int str = a.nextInt();
return str;
}
public static int insertInt(String decs) //input Integer with Description
public static int inputInt(String decs) //input Integer with Description
{
System.out.println(decs);
Scanner a = new Scanner(System.in);
int str = a.nextInt();
return str;
}
public static int insertInt(String decs,boolean oneLine) //input Integer with Description,Single line
public static int inputInt(String decs,boolean oneLine) //input Integer with Description,Single line
{
System.out.print(decs);
Scanner a = new Scanner(System.in);
int str = a.nextInt();
return str;
}
public static double insertDouble() //input Double
public static double inputDouble() //input Double
{
Scanner a = new Scanner(System.in);
double str = a.nextDouble();
return str;
}
public static double insertDouble(String decs) //input Double with Description
public static double inputDouble(String decs) //input Double with Description
{
System.out.println(decs);
Scanner a = new Scanner(System.in);
double str = a.nextDouble();
return str;
}
public static double insertDouble(String decs,boolean oneLine) //input Double with Description,Single line
public static double inputDouble(String decs,boolean oneLine) //input Double with Description,Single line
{
System.out.print(decs);
Scanner a = new Scanner(System.in);
double str = a.nextDouble();
return str;
}
public static long insertLong() //input Long
public static long inputLong() //input Long
{
Scanner a = new Scanner(System.in);
long str = a.nextLong();
return str;
}
public static long insertLong(String decs) //input Long with Description
public static long inputLong(String decs) //input Long with Description
{
System.out.println(decs);
Scanner a = new Scanner(System.in);
long str = a.nextLong();
return str;
}
public static long insertLong(String decs,boolean oneLine) //input Long with Description,Single line
public static long inputLong(String decs,boolean oneLine) //input Long with Description,Single line
{
System.out.print(decs);
Scanner a = new Scanner(System.in);
long str = a.nextLong();
return str;
}
public static float insertFloat() //input Float
public static float inputFloat() //input Float
{
Scanner a = new Scanner(System.in);
float str = a.nextFloat();
return str;
}
public static float insertFloat(String decs) //input Float with Description
public static float inputFloat(String decs) //input Float with Description
{
System.out.println(decs);
Scanner a = new Scanner(System.in);
float str = a.nextFloat();
return str;
}
public static float insertFloat(String decs,boolean oneLine) //input Float with Description,Single line
public static float inputFloat(String decs,boolean oneLine) //input Float with Description,Single line
{
System.out.print(decs);
Scanner a = new Scanner(System.in);
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
## HOW TO IMPORT PACKAGE?

1. Before starting must import respective.
2. For **EasyIO.EasyIO** package, import as:
2. For **EasyIO.pyStyle** package, import as:

```java
// At top, must import this with "static" keyword
import static EasyIO.EasyIO.*;
import static EasyIO.pyStyle.*;
```

3. For **EasyIO.cStyle** package, import as:
Expand All @@ -34,7 +34,7 @@

## HOW TO PRINT?

USING **EasyIO.EasyIO** PACKAGE
USING **EasyIO.pyStyle** PACKAGE

1. These methods will print what ever is written within circular brackets.
2. String must be Written with Double Quotes(" ").
Expand All @@ -43,7 +43,7 @@ USING **EasyIO.EasyIO** PACKAGE

```java
// At top, must import this
import static EasyIO.EasyIO.*;
import static EasyIO.pyStyle.*;
...
...
print("One line ",true);
Expand Down Expand Up @@ -74,19 +74,19 @@ USING **EasyIO.cStyle** PACKAGE

## HOW TO INSERT/GET DATA FROM USER?

USING **EasyIO.EasyIO** PACKAGE
USING **EasyIO.pyStyle** PACKAGE

1. All of these methods used to accept input from front end user.
2. User can give description.It is the guidelines for the user.
3. If user wants Description and input in a single line then he can Enable(true)the Single line method.

```java
// At top, must import this
import static EasyIO.EasyIO.*;
import static EasyIO.pyStyle.*;
...
...
String str = insert() ;
String age = insertInt("Enter your age");
String str = input() ;
String age = inputInt("Enter your age");
...
```

Expand All @@ -113,14 +113,14 @@ USING **EasyIO.cStyle** PACKAGE

## HOW TO CAST THE TYPE?

ONLY USING **EasyIO.EasyIO** PACKAGE
ONLY USING **EasyIO.pyStyle** PACKAGE

1. All Type casting Methods has first Letter Capital.
2. Type casting is done with String, Integer, Double, Long, Float data types.

```java
// At top, must import this
import static EasyIO.EasyIO.*;
import static EasyIO.pyStyle.*;
...
...
int age = Int(args[1]);
Expand Down
2 changes: 1 addition & 1 deletion Sample_pyStyle.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import static EasyIO.EasyIO.*;
import static EasyIO.pyStyle.*;
class Sample_pyStyle
{
public static void main(String args[])
Expand Down
20 changes: 10 additions & 10 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
## HOW TO IMPORT PACKAGE?

1. Before starting must import respective.
2. For **EasyIO.EasyIO** package, import as:
2. For **EasyIO.pyStyle** package, import as:

```java
// At top, must import this with "static" keyword
import static EasyIO.EasyIO.*;
import static EasyIO.pyStyle.*;
```

3. For **EasyIO.cStyle** package, import as:
Expand All @@ -34,7 +34,7 @@

## HOW TO PRINT?

USING **EasyIO.EasyIO** PACKAGE
USING **EasyIO.pyStyle** PACKAGE

1. These methods will print what ever is written within circular brackets.
2. String must be Written with Double Quotes(" ").
Expand All @@ -43,7 +43,7 @@ USING **EasyIO.EasyIO** PACKAGE

```java
// At top, must import this
import static EasyIO.EasyIO.*;
import static EasyIO.pyStyle.*;
...
...
print("One line ",true);
Expand Down Expand Up @@ -74,19 +74,19 @@ USING **EasyIO.cStyle** PACKAGE

## HOW TO INSERT/GET DATA FROM USER?

USING **EasyIO.EasyIO** PACKAGE
USING **EasyIO.pyStyle** PACKAGE

1. All of these methods used to accept input from front end user.
2. User can give description.It is the guidelines for the user.
3. If user wants Description and input in a single line then he can Enable(true)the Single line method.

```java
// At top, must import this
import static EasyIO.EasyIO.*;
import static EasyIO.pyStyle.*;
...
...
String str = insert() ;
String age = insertInt("Enter your age");
String str = input() ;
String age = inputInt("Enter your age");
...
```

Expand All @@ -113,14 +113,14 @@ USING **EasyIO.cStyle** PACKAGE

## HOW TO CAST THE TYPE?

ONLY USING **EasyIO.EasyIO** PACKAGE
ONLY USING **EasyIO.pyStyle** PACKAGE

1. All Type casting Methods has first Letter Capital.
2. Type casting is done with String, Integer, Double, Long, Float data types.

```java
// At top, must import this
import static EasyIO.EasyIO.*;
import static EasyIO.pyStyle.*;
...
...
int age = Int(args[1]);
Expand Down