}
}
};
- thread2.start();*/
+ thread2.start();
- //return 1;
+ return 1;*/
return sum;
}
+ public StructJ[] handleStruct(StructJ[] data) {
+
+ for (StructJ str : data) {
+ System.out.println("Name: " + str.name);
+ System.out.println("Value: " + str.value);
+ System.out.println("Year: " + str.year);
+ }
+
+ StructJ test = new StructJ();
+ test.name = "Anonymous";
+ test.value = 1.33f;
+ test.year = 2016;
+
+ data[0] = test;
+
+ return data;
+ }
+
+
+ public EnumJ[] handleEnum(EnumJ[] en) {
+
+ for (EnumJ e : en) {
+ System.out.println("Enum: " + e);
+ }
+
+ return en;
+ }
+
public static void main(String[] args) {
- TestClass tc = new TestClass();
- CallBack cb = new CallBack(3);
+ //TestClass tc = new TestClass();
+ //CallBack cb = new CallBack(3);
- tc.registerCallback(cb);
- System.out.println("Return value: " + tc.callBack());
+ //tc.registerCallback(cb);
+ //System.out.println("Return value: " + tc.callBack());
}
}