Instantly share code, notes, and snippets.

@kevchn /Box.java Secret
Last active Jan 4, 2017

Embed
What would you like to do?
public class Box<T>{
T data;
public Box(T data){
this.data = data;
}
public String revealNameOfData(){
return data.toString();
}
public static void main(String[] args){
Box myBox = new Box(1231238);
System.out.println(myBox.revealNameOfData());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment