Re: problem in java question
roohbir wrote:
....
...I was criticising
books that jumped directly into GUI based
applications, and *especially* applets.
Actually, a lot of books are being marketed on the notion that studying
GUI based applications directly, and specifically applets, is the best
way to learn Java.
Actually, that closely reflects what I was seeing
the last time I had cause to look for Java books**.
It is a pity that is *still* the case.
I think the author's believe that helps keep the
student's interest, & the reason they push applets
is the same basic reasons Sun's examples also
(quite irritatingly) focus on applets.
1) 'everybody has a Java enabled browser'*
so the student can put their applet in a
web-page to boast to their friends.
2) Applets provide handy little convenience
methods for dealing with sounds, and images.
3) Applets have an 'inbuilt' message area
available through the 'showStatus(String)' -
which saves a little GUI coding.
* And no, 'everybody' does not.
** OTOH - even then I was able to find a couple of
books that I liked, a good example of which was.
"The Complete Reference: Java 2 (Third Edition)'
by Naughton/Schildt. (now quite old)
The chapter titles are..
1. Genesis of Java
2. Overview..
3. Data Types..
4. Operators
.....
10. Exception handling
11. Multi-threaded programming
12. I/O Applets and Other Topics.
...OK. It *still* goes for those (damnable) Applets,
but they are mentioned almost as an afterthought..
'Oh, and you can also wrap a cute GUI around this stuff'..
It is only chapter 19 before applets are revisited,
until chapter 21, where the AWT in general is
covered.
AFAIR - I skimmed the parts on applets and only
came back to them after I'd studied AWT.
...So when you mentioned in the post about
command-line, even I was surprised.
My opinions were not reflected in the majority
of books I found at the time. (Do not be surprised).
Now I'll refer to the Sun's tutorial as much as possible.
Not a bad idea, if you can make it work for you.
...Though I
shall stick to this book for a while! Have become attached to it !!
I understand the sentiment. It may have other
very good aspects, and having a number of
sources of information, is very useful.
Andrew T.