-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUse.java
57 lines (54 loc) · 864 Bytes
/
Use.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
51
52
53
54
55
56
57
package flowEasy;
import java.util.Scanner;
import java.util.Random;
import static java.lang.System.*;
public class Use
{
static Scanner sc = new Scanner(in);
static Random r = new Random();
public static void PLN(String s)
{
out.println(s);
}
public static void P(String s)
{
out.print(s);
}
public static void O(Object o)
{
out.println(o);
}
public static int I()
{
return sc.nextInt();
}
public static float F()
{
return sc.nextFloat();
}
public static double D()
{
return sc.nextDouble();
}
public static String S()
{
return sc.nextLine();
}
public static char C()
{
char c = ' ';
try
{
c = (char)System.in.read();
}
catch(Exception e)
{
e.printStackTrace();
}
return c;
}
public static int rand(int a)
{
return r.nextInt(a);
}
}