• Post Reply Bookmark Topic Watch Topic
  • New Topic

get the value of constant  RSS feed

 
ajay verma
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if i am using a constant(like MAXLENGTH).how can i get the the values.?
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
System.out.println(MAXLENGTH); ???

Go and find the Javadoc html files for the class with the constant in; find where it shows fields, and somewhere near there it will say "constant field values." Click on that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!