Campbell Ritchie wrote:Welcome to the Ranch Melinda Taylor.
Thank you for finding the code. I would recommend any beginners using it to delete the package declarations from the files, and also the lineThat will make compiling easier.
fred rosenberger wrote:What are you using to edit your files? Most code editors will do paren/bracket matching. If you look at your line 19:
There is an closing paren right before the semi-colon that doesn't have a matching open-paren. I'm not sure if you need the close-paren at all, but you do need to always have them in pairs.
Abhishek Bose wrote:Hello EveryOne,
I am not clear with this HAs- A relationship in java....can anyone please explain me..... i request a detailed version of the explaination.....!
Mallik kannan wrote:Hi all,
I am new java beginner , i need of some clarification and they are as follows:
a. I want to know the need of JUnit?
b. While Using Private Variables, Setters/ Getters are came into play. My Query is Q) Is private variables are handled only by Setters/getters? or What are all the other usage of Setters and getters other than private variables?
Thanks in advance,
Andrew Bedley wrote:A java book I have encourages me to use try/catch only for when the exception is "truly exceptional." They say that in data entry, you should prevent the exceptions from being thrown. I merrily used the Scanner.hasNextDouble() method in console applications. The book kind of left me high and dry though on AWT GUI apps. I went ahead and attached the Scanner to the string gleaned from an AWT textField, and it worked! My questions, however, are:
1. The examples I get from the web seem to use Try/Catch. Do people not try and avoid exceptions like the book recommends?
2. Am I using Scanner in a manner that it was not intended? What do I use for an AWT program? My class doesn't trust us with Swing yet, but if I graduate to Swing, can I use the same techniques as AWT?
javadocs, and you guys. What sites give legit answers? I scour the web, and everybody has slightly different answers - it's hard to know who is best.
Kuldeep singh ranbanka Rathore wrote:
Campbell Ritchie wrote:That's only because you have never tried NotePad2 por NotePad++
Kuldeep singh ranbanka Rathore wrote: . . . i also think that notepad will be good for beginners as i also use notepad.
And welcome to the Ranch
thaks . i'll try these ones..