Last active
May 10, 2021 16:50
-
-
Save 95Rajitha/bf393c729aa5edadc6476645400427cd to your computer and use it in GitHub Desktop.
compiler backstage job for class type erasure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sample { | |
private Object[] listOfItems; | |
public Stack(int size) { | |
this.listOfItems = (Object[]) new Object[size]; | |
} | |
public void putItems(Object data) { | |
// implementations | |
} | |
public Object getItems() { | |
// implementations | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment