This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Patrick, Trying to use Notepad for java programming is really constraining yourself. I'd like to suggest that you take a timeout and visit the site of the TextPad text editor... www.textpad.com You can download a free evaluation version of the text editor at the site. This is an extremely highly rated text editor and it is very helpful for writing Java code because it color codes keywords, etc. Also auto indents. You can even run your code from within the editor...this really makes it easier to test out code as you're learning to code Java. Textpad is essentially one or two steps short of being an integrated developement environment. It's also very handy for coding in other languages as well. Needless to say, you won't have problems in saving files as .java files. And you can have multiple files open simultaneously (which I don't think Notepad will allow)...most handy since java programs often involve multiple files. Perhaps the biggest benefit to writing code and executing it from within Textpad is that when your code doesn't compile and a series of error statements are generated, they are automatically placed in a window within Textpad where you can scroll through them for full review. Try that in a DOS window! This feature alone makes it worth the registration fee. I sound like a salesman for Textpad. But in fact I have no business connection with TextPad; I just use it for my own coding (gladly paid the registration fee) and it is one of only two shareware products that I've found to be well worth the registration fee (around $30 as I recall)...the other being WinZip. I hope you take this only as the friendly suggestion it is intended to be. Good luck on your Java programming education! [This message has been edited by Allen Alchian (edited December 01, 2000).]
I use Textpad alot, but I get very frustrated that it refuses to honour the file extensions I enter when I try to save a file. I can select Save As, enter something.cxx, for example and it will always save it as something.cxx.txt. Do you know any way to turn off this annoying functionality and to get it to leave my file names alone?
In notepad's Save As dialog there are two input fields. One is a text box asking for the file name (and supplying the extention .txt by default) and the other is entitled Save As Type. Save As Type is set to Text by default. If you change this to All Files then you won't be forced to accept the .txt that notepad wants to append to everything.