forked from wedusk101/NumericalAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IO.java
50 lines (49 loc) · 762 Bytes
/
IO.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package MyIO;
import java.util.Scanner;
public class IO
{
static Scanner obj=new Scanner(System.in);
public static void PO(Object o)
{
System.out.println(o);
}
public static void P(String s)
{
System.out.println(s);
}
public static void PSame(String s)
{
System.out.println(s);
}
public static int I()
{
int i=obj.nextInt();
return i;
}
public static float F()
{
float f=obj.nextInt();
return f;
}
public static double D()
{
double d=obj.nextInt();
return d;
}
public static String S()
{
obj.nextLine();
String s=obj.nextLine();
return s;
}
public static char C()
{
char d=' ';
try
{
d=(char)System.in.read();
}
catch(Exception e){}
return d;
}
}