Possible Duplicate:
What does the <TYPE> in java mean?
Hello I came across this class while debugging , can someone give me pointers to what it means, please. Thanks.
class Something<P>{
private P someVariable;
}
//what does <P> mean here?
Thanks.
This is a generic. It allows you to write code that works with different types.
Try this tutorial:
http://docs.oracle.com/javase/tutorial/java/generics/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With