-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcheat.java
More file actions
46 lines (32 loc) · 918 Bytes
/
cheat.java
File metadata and controls
46 lines (32 loc) · 918 Bytes
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
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Stack;
// This class is just a random class which act as cheat code for Java.
// I am more comfortable with Ruby thats why it exists only for Java.
public class cheat {
public void array(){
int[] myArray = new int[5]; // this defines a constant size array.
int i = 0;
}
public void math(){
Math.abs(-1);
}
public void stack(){
Stack<Integer> stack = new Stack<>();
}
public void hashmap(){
HashMap<Integer, Integer> map = new HashMap<>();
for ( Integer key : map.keySet() ) {
}
for (Map.Entry<Integer, Integer> entry : map.entrySet() ) {
entry.getKey();
entry.getValue();
}
}
public void set(){
HashSet<Integer> set = new HashSet<>();
}
public void loop(){
}
}