This repository was archived by the owner on Feb 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathexample-structures.dex2jar.java
79 lines (72 loc) · 1.63 KB
/
example-structures.dex2jar.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package com.lohan.crackme1;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.net.MalformedURLException;
import java.net.URL;
public class example
{
private static int Counter;
public example()
{
Counter = 16;
}
public static void ArrayExample()
{
String[] arrayOfString = new String[5];
arrayOfString[0] = "set value at index 0";
arrayOfString[1] = "index 1 has this value";
if (arrayOfString[0].equals(arrayOfString[1]))
System.out.println("array at index 0 = 1 (wont happen)");
}
public static void LoopExample()
{
for (int i = 0; ; i++)
{
if (i >= Counter)
return;
System.out.println("current val for loop: " + i);
}
}
public static void SwitchExample()
{
switch (42)
{
default:
System.out.println("invalid value");
case 1:
case 2:
case 42:
case 5:
}
while (true)
{
return;
System.out.println("val 1");
continue;
System.out.println("val 2");
continue;
System.out.println("val 42");
continue;
System.out.println("val 5");
}
}
public static void TryCatchExample()
{
try
{
new URL("google.com").openStream().close();
return;
}
catch (MalformedURLException localMalformedURLException)
{
while (true)
System.out.println("Invalid URL " + "google.com" + ": " + localMalformedURLException.getMessage());
}
catch (IOException localIOException)
{
while (true)
System.out.println("Unable to execute " + "google.com" + ": " + localIOException.getMessage());
}
}
}