1 package iotrmi.Java.sample;
5 public class TestClass {
12 private String stringC;
13 private CallBackInterface cb;
27 public TestClass(int _int, float _float, String _string) {
36 public void setA(int _int) {
42 public void setB(float _float) {
48 public void setC(String _string) {
55 public String sumArray(String[] newA) {
64 public int setAndGetA(int newA) {
71 public int setACAndGetA(String newC, int newA) {
79 public void registerCallback(CallBackInterface _cb) {
85 public int callBack() {
91 public static void main(String[] args) {
93 TestClass tc = new TestClass();
94 CallBack cb = new CallBack(3);
96 tc.registerCallback(cb);
97 System.out.println("Return value: " + tc.callBack());