Skip to content

Instantly share code, notes, and snippets.

@95Rajitha
Last active May 10, 2021 16:50
Show Gist options
  • Save 95Rajitha/bf393c729aa5edadc6476645400427cd to your computer and use it in GitHub Desktop.
Save 95Rajitha/bf393c729aa5edadc6476645400427cd to your computer and use it in GitHub Desktop.
compiler backstage job for class type erasure
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