Hey so I’ve been reading on java and I got the concepts of how to handle objects, arrays, creating link lists, etc. All the books I’ve read require me to create my own class to handle arrays or link lists. But I know they did that just for me to understand the main concept and inner workings of those data structures.
So what I’m saying is that I’m tired of creating my own and want to learn how to search for the predefined classes. For example, if I wanted to create an array and push an element into the array I would either have to manually have to put it in an index or create my own push method. Samething for link lists. I looked through the documentation but failed to find anything that related to pushing and popping elements.
Ps the documentation on php is alot easier to follow and find
Careful what you wish for. I started in C# you learn the class lists, and I couldn’t WAIT to get out of there and start coding my own stuff. I hear what you mean about not having to reinvent the wheel everytime, though. Just know, that it’s sometimes a lot harder to integrate a prefab component you don’t really know rather than just rebuilding it yourself. And you’re probably already doing this, but as you write code, that effectively becomes a new library that you have access to and can deploy in other applications, with the advantage that you know it a lot better.
Sounds like you’re looking for the JavaDocs, the link will take you to Sun’s JavaDocs, they are by no means meant to be all-inclusive - simply documentation for core java and the many Sun enhancements. Any good project will also have it’s own set of JavaDocs for you to peruse.
Using JavaDocs. Prepare to climb a steep learning curve, you’ll need good Java knowledge to understand what you’re reading and some patience to give yourself the time to learn how to navigate through the docs.
Using the upper left pane, navigate to java.lang. Read the class names in the lower left pane, become familiar with them. Java.lang contains the basic building blocks you will use in every program you write - java.lang is so important that it is not necessary to import it into your code, as it is imported by default.
In the upper left, move down to java.util. Again, read through the class names, etc. Speaking of pushing and popping, pay special attention to Stack.
Other packages to become familiar with are java.io and java.text.
Another way to use the docs is the ‘I know what the class is, but not the package’, use the search feature of your browser (ctrl+f) and keeping hitting next till you see it in the lower left pane.
Another indispensable reference is the JLS. Here you will discover the inner workings of Java. Questions of the type “Is it 1, 2, 3, go; or 1, 2, go on 3?” can be answered here, among many others.