1
|
package samples.ok;
|
2
|
|
3
|
import java.io.Serializable;
|
4
|
|
5
|
public class Simple implements Serializable
|
6
|
{
|
7
|
enum Level {
|
8
|
LOW,
|
9
|
MEDIUM,
|
10
|
HIGH
|
11
|
}
|
12
|
|
13
|
public static final long serialVersionUID = 1L;
|
14
|
|
15
|
public String pozdrav = "AHOJ";
|
16
|
public int testInt = 123;
|
17
|
public double testDouble = 1.00;
|
18
|
public int[] intArray = new int[3];
|
19
|
public String[] stringArray = new String[3];
|
20
|
|
21
|
public Level localEnum = Level.LOW;
|
22
|
|
23
|
public Simple()
|
24
|
{
|
25
|
int locInt = 5;
|
26
|
this.intArray[0] = 5;
|
27
|
this.intArray[1] = 10;
|
28
|
this.intArray[2] = 15;
|
29
|
|
30
|
this.stringArray[0] = "A";
|
31
|
this.stringArray[1] = "B";
|
32
|
this.stringArray[2] = "C";
|
33
|
}
|
34
|
}
|