Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to see methods in a class through command prompt

 
Vinnibabu singu
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HIii guys,

Can anyone tell me what is the command to view the methods of an inbuilt java class
for example,methods in Integer class through command prompt.
It would be very helpful to me.
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"javap java.lang.Integer" from the command prompt. BTW, you should use the API as it tells you all the details (what's & what's not etc..) needed by a programmer.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know of any command-line interface to the JavaDocs that displays the full info, but http://groovy.codehaus.org/command+line+groovy+doc+or+methods+lookup might be a start.
 
Campbell Ritchie
Sheriff
Posts: 48378
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apart from the fact that you have all the source available in your Java installation folder already . . .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic