Re: Is there an easy way to find the right class?



Farcus Pottysquirt wrote:
The API has tons of classes and stuff right? So if I'm writing a program in Java, how would I find the right class and package? Let's say I'm writing an app and I need a class that will take a database object and store it in some sort of list that will let me easily add and delete from it. I know that ArrayList has this functionality...but that's only by experience. What about a noobie (I rank myself only slightly higher)... how would they find this out?

If I have any clues about the package I want, I go straight to the API documentation, and start reading about that package. In particular, read any package page in the documentation - it often gives major clues about which classes to use in what situations.

If not, I google:

java whatever

where "whatever" is a description of what I want to do.

Patricia
.



Relevant Pages

  • building java rpm
    ... I am trying to build a java rpm based on the nosrc.rpm from jpackage.org ... chmod -R u+w bin CHANGES COPYRIGHT javaws lib LICENSE man plugin ... This package contains source files for %. ...
    (Fedora)
  • Re: Module/package hierarchy and its separation from file structure
    ... importing under different names, I meant exactly that. ... You could confuse Python adding a package root to sys.path and doing ... because in Java Monkey.java is a class. ...
    (comp.lang.python)
  • Re: NOACE- End of the road for Ada?
    ... > whether Java is superior to ... Is it easier to learn than Ada? ... Java is more popular because its syntax better represents ... A package isn't a namespace. ...
    (comp.lang.ada)
  • sun-java5-bin: jdk/jre 1.5.0_08-b03 in Edgy is broken
    ... Justification: renders package unusable ... can't start netbeans 5.5 final java installer ... Versions of packages sun-java5-bin depends on: ... STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity ...
    (Ubuntu)
  • Re: importing external class from inside package
    ... we write the statement - 'package mypackage' in each of those ... Then we complied all the java files: ... of MyInterface class in the First.java. ...
    (comp.lang.java.help)