Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

name this this class notation  RSS feed

 
Jano Frank
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the name of this class notation bellow?




Thank you!
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jano Frank wrote:What is the name of this class notation bellow?




Thank you!


That is 'Generics'. You can learn more about them here: http://docs.oracle.com/javase/tutorial/java/generics/index.html
 
Campbell Ritchie
Sheriff
Posts: 53742
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jano Frank wrote:What is the name of this class notation bellow?




Thank you!
That looks like a label. But it might not compile in its present state.
 
Jano Frank
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, sorry, it was just an example, not a code that would compile, I wanted to show how they instantiate an object from the class and added 'usage' note into the "code".
 
Campbell Ritchie
Sheriff
Posts: 53742
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not like that. You can add it as part of a documentation comment, or in an if-else.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!