public class Member{
private Object value;
public Object get(){
return value;
}
public void set(Object x){
value=x;
}
}
public static void main(String[]args){
Member a=new Member();
a.set(“Hello World”);
String str=(String)(a.get());
System.out.println(“Value is”+str);
}
public static void main(String[]args){
Member a=new Member();
a.set(new integer(123));
integer b=new(integer)(a.get());
int val = b.intValue();
System.out.pritln(“Value is”+val);
}