The Artima Developer Community
Sponsored Link

Java Answers Forum
Java Programming

1 reply on 1 page. Most recent reply: Mar 14, 2002 9:03 AM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Lynn Hollerman

Posts: 67
Nickname: gmholler
Registered: Mar, 2002

Java Programming Posted: Mar 14, 2002 7:50 AM
Reply to this message Reply
Advertisement
I am a new Java programming, and there is something I'm wondering that isn't in any of the books I've read or the on-line tutorials I've gone thru.

Just about every time a program is used to illustrate a point, there is always some method used, seemingly out of the blue. The author will say something like "use the xxx method of the yyy class", and more often than not the whole thing seems really straightforward and logical (as in using a method called "getSettings" to get some settings) but - how am I, as a new Java programmer, supposed to know that those methods exist?

I know to look at the documentation on-line at the Sun site - if I'm on-line - but there doesn't seem to be a good way to search thru it to find what I want; if I'm lucky, there'll be a class with the very name I'm thinking of for me to look at, and if I'm really lucky, the class will have methods that do just what I want. But if not, what do I do? And what if I'm not on-line and need to do some Java development?

Thanks!


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Java Programming Posted: Mar 14, 2002 9:03 AM
Reply to this message Reply
Hey,

I suggest downloading the documentation and bringup up the api index page in your browser (Internet Explorer, Navigator, Opera, or whatever you use) and keep it open in another window.
It probably takes a while to get used to knowing which classes to look in. I use the Index at the top and try and guess a name and see if there is something there already. G for get... and S for set... have very long index lists.

You can also buy the Java Almanac which lists everything in paperback book format. I think you can order it from the java.sun.com website through their on line bookstore. Amazon probably has it. It was not very expensive

I bought and used one of those for a while a couple of years ago. But I have adapted to the electornic documentation approach and learned to just go find things.

And of course if there is no method, you make your own. Go for it!!!

Flat View: This topic has 1 reply on 1 page
Topic: My browser doesn?t support Java Previous Topic   Next Topic Topic: menus appear behind Container

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use