Forum: Java Sep 16th, 2007 |
| Replies: 2 Views: 837 You will have to declare an instance method if you are overriding.
To use a non-static method in main(), you will need to create an instance/object of the class. Since this class is abstract, you... |
Forum: Java Aug 13th, 2007 |
| Replies: 3 Views: 5,816 You can save it as a String (VARCHAR) or CLOB. That depends on what you want to store.
That's got nothing to do with saving the data or the file. You could make use of a HTML parser or a... |
Forum: Java Jan 30th, 2007 |
| Replies: 2 Views: 1,780 Wow! How do you expect someone to read that message? Please make use of code tags and line breaks. |
Forum: Java Jan 30th, 2007 |
| Replies: 4 Views: 2,526 From your code:
while (s = "n"){
This is wrong in two aspects:
1. You are trying to do an assignment operation instead of comparison.
2. Even if you want to compare Strings, you should be... |
Forum: Java Jan 28th, 2007 |
| Replies: 7 Views: 1,867 I guess I'll try reading teh book again. It might be an interesting study and a good topic to discuss practices. :) |
Forum: Java Jan 28th, 2007 |
| Replies: 7 Views: 1,867 I see that somebody considers this post of mine as a mockery. It may have been due to me not being a native English speaker or me posting the wrong smilie. But I would genuinely wish to know the... |
Forum: Java Jan 26th, 2007 |
| Replies: 7 Views: 1,867 Refer a couple of them to me so that I could remember not to mention it while replying somewhere. :cheesy: |
Forum: Java Jan 26th, 2007 |
| Replies: 7 Views: 1,867 Sun's Java tutorial (http://java.sun.com/docs/books/tutorial/)
Thinking in Java - 3rd edition (http://www.mindviewinc.com/downloads/TIJ-3rd-edition4.0.zip) |
Forum: Java Jan 26th, 2007 |
| Replies: 2 Views: 1,724 People don't solve homework here. What effort have you made so far? |
Forum: Java Jan 26th, 2007 |
| Replies: 3 Views: 1,286 It is possible and it is bad/redundant code design.
If an object has to do some operation on itself, it can make use of the this keyword. There is no need to pass a self-reference. That's simply a... |
Forum: Java Jan 26th, 2007 |
| Replies: 3 Views: 1,286 Your method signature is, kind of, redundant. When you are calling a method on an object, you don't need to pass the same object to it. Whatever information you need about the object is already... |
Forum: Java Jan 26th, 2007 |
| Replies: 6 Views: 7,043 build.xml could be in the current directory (the directory where you are executing the command). If your build script is named something else, you can specify that with ant too. |
Forum: Java Jan 25th, 2007 |
| Replies: 2 Views: 1,189 Please do not duplicate posts.
http://www.daniweb.com/techtalkforums/thread67707.html
Post some relevant information about your problem. |
Forum: Java Jan 25th, 2007 |
| Replies: 5 Views: 1,516 |
Forum: Java Jan 25th, 2007 |
| Replies: 5 Views: 1,516 private void generate(int low, int high) {
Random generator = new Random();
return String.valueOf( low + generator.nextInt( high -low ) );
} |
Forum: Java Jan 25th, 2007 |
| Replies: 5 Views: 1,516 If you want the method to return a String, you should not be declaring the method to return 'void' and you should be taking the low and high values as method arguments. |
Forum: Java Jan 24th, 2007 |
| Replies: 3 Views: 993 It only means that you don't have knowledge in jsp and servlet too. You can't know those before learning core java. You still have time to learn it but your post stinks of laziness. Get some books... |
Forum: Java Jan 22nd, 2007 |
| Replies: 2 Views: 1,154 |
Forum: Java Jan 20th, 2007 |
| Replies: 5 Views: 6,132 You mean applet! NoClassDefFoundError indicates a runtime classpath problem. Since you haven't posted any details, that's as far as I could help. |
Forum: Java Jan 19th, 2007 |
| Replies: 32 Views: 6,181 Yet if they start out without a tool in the first place, they would not land in that situation. |
Forum: Java Jan 19th, 2007 |
| Replies: 5 Views: 6,132 Another aspect is the lack of code tags. You should make use of code tags to make your posted code readable and preserve formatting.
http://www.daniweb.com/techtalkforums/announcement9-3.html |
Forum: Java Jan 19th, 2007 |
| Replies: 5 Views: 6,132 Your application is not even using Swing. For a start, make use of Swing classes.
Second, making an applet of a Swing application is not too difficult. You need to change the top-level container... |
Forum: Java Jan 18th, 2007 |
| Replies: 10 Views: 16,929 How so? An ArrayList is a List, unless you mean to use ArrayList instead of an array of Strings. |
Forum: Java Jan 18th, 2007 |
| Replies: 14 Views: 4,638 I allegedly rarely make useful comments. Drivel begets more drivel. |
Forum: Java Jan 18th, 2007 |
| Replies: 14 Views: 4,638 We are not proving anything. The question is irrelevant now because it's been a long time since Sun used that Java 2 thing. They moved ahead so you'd better move along too.
No, you are not wrong... |
Forum: Java Jan 18th, 2007 |
| Replies: 14 Views: 4,638 Your answer would be partly correct. Factually, Sun decided to call it Java 2 - second generation or whatever logic they had, because they made a major addition with the Swing package. It included... |
Forum: Java Jan 17th, 2007 |
| Replies: 2 Views: 1,041 Your post does not indicate any reason for getting a NullPointerException. My guess is that the isbn String is null but that's just a guess. Could you print out the stack trace and see what line it... |
Forum: Java Jan 17th, 2007 |
| Replies: 14 Views: 4,638 That post is over 2.5 years old when Java 5 wasn't even around. |
Forum: Java Jan 16th, 2007 |
| Replies: 1 Views: 2,317 You need to elaborate on what you mean by "not working" |
Forum: Java Oct 27th, 2006 |
| Replies: 5 Views: 1,300 |
Forum: Java Oct 27th, 2006 |
| Replies: 2 Views: 1,346 http://java.sun.com/docs/books/tutorial/ |
Forum: Java Oct 27th, 2006 |
| Replies: 5 Views: 1,300 You haven't posted the error message. |
Forum: Java Oct 27th, 2006 |
| Replies: 11 Views: 4,181 What command are you using to execute it?
Try with java -cp . tree |
Forum: Java Oct 27th, 2006 |
| Replies: 1 Views: 976 What help - where's the question? |
Forum: Java Oct 27th, 2006 |
| Replies: 1 Views: 1,074 http://en.wikipedia.org/wiki/API
http://en.wikipedia.org/wiki/Software_library |
Forum: Java Oct 27th, 2006 |
| Replies: 1 Views: 1,052 j2ee.jar in the J2EE SDK or there is an application server specific JAR in each application server which has the JAR for J2EE implementation. Add it to your Eclipse project. |
Forum: Java Oct 6th, 2006 |
| Replies: 1 Views: 1,715 Unicode should work. Well, why not? |
Forum: Java Jun 30th, 2006 |
| Replies: 2 Views: 10,725 Look at the struts documentation. There is a tag in struts-config.xml which allows you to configure the datasource. |
Forum: Java Jun 30th, 2006 |
| Replies: 6 Views: 2,226 I guess he means some kind of Notepad application with some features over and above what notepad provides. |
Forum: Java Jun 30th, 2006 |
| Replies: 2 Views: 1,331 http://www.oreilly.com/catalog/headservletsjsp/
I feel you should get comfortable with this first and then look around for Struts. |