Forum: Java May 25th, 2009 |
| Replies: 12 Views: 797 While compiling you need to specify the .java file, you are right on that part, but while running the file through the java command you cannot specify the .java file, such a file won't simply run,... |
Forum: Java May 24th, 2009 |
| Replies: 5 Views: 781 Thats because you haven't have implemented the toString method for your objects Address and Name. You need to implement them to define the behaviour of the toString method for your object. For e.g:... |
Forum: Java May 22nd, 2009 |
| Replies: 5 Views: 221 http://lmgtfy.com/?q=static+and+nested+inner+classes+java |
Forum: Geeks' Lounge May 20th, 2009 |
| Replies: 32 Views: 2,163 @serkan : The reason you cannot argue with Narue over this, or more appropriately, should not, is that even if people are working for 10-12 hours, can't they learn on the job itself ? Thats what... |
Forum: Java May 19th, 2009 |
| Replies: 5 Views: 338 As hardik.rajani mentions there's is little programming "tradition" to this.
The concept of the Top of Stack is that the Top should always point to the uppermost/topmost element in the Stack.
... |
Forum: Geeks' Lounge May 12th, 2009 |
| Replies: 9 Views: 810 Just one more suggestion that comes to my end (it's a crazy one): Go looking for female psychiatrists in your locality of your age, tell them about this problem of yours, tell her you want many... |
Forum: Geeks' Lounge May 12th, 2009 |
| Replies: 9 Views: 810 But Mr. Sendur, it's like you are in search of water and where are you looking for it ? In the dryest of the places of the World. Got the point ?
What are you doing searching for a smart, deep... |
Forum: Geeks' Lounge May 10th, 2009 |
| Replies: 14 Views: 1,199 I ain't finding much time apart from my work place to code anything. At workplace I need to build a small router/accounter for text messages that determines from the prefix of the destination... |
Forum: Geeks' Lounge May 9th, 2009 |
| Replies: 33 Views: 2,606 I fail to understand why this thread is named what it is. No one's interested in Rashakil Fol anymore I guess. |
Forum: Geeks' Lounge May 6th, 2009 |
| Replies: 33 Views: 2,606 My goodness Serkan, living in the US hasn't had much of a positive effect on your English langauge skills, now have they ?
;) |
Forum: Geeks' Lounge May 4th, 2009 |
| Replies: 18 Views: 1,294 This isn't a nice thing to say, especially when that someone has announced her discomfort with such stuff. I don't believe much in casting people in religious moulds anyway so I won't be talking... |
Forum: Geeks' Lounge Apr 30th, 2009 |
| Replies: 14 Views: 1,302 I should say I have to agree with Serkan Sendur here in this thread. I'm not saying that I have the same feelings for Narue as he does, but I mean I agree with him when he says "You have the liberty... |
Forum: Java Mar 22nd, 2009 |
| Replies: 1 Views: 373 Read this (http://www.daniweb.com/forums/thread182326.html) thread. |
Forum: Java Mar 22nd, 2009 |
| Replies: 2 Views: 438 If you want to replace all the occurrences of the word take a look at the replaceAll method, else if you would just want to replace the first occurrence of it, use the replaceFirst method. If you... |
Forum: Java Mar 21st, 2009 |
| Replies: 7 Views: 415 You need to put the two abstract methods eat and move in the Animal class like :
public abstract void eat();
public abstract void move();
This is part of the "contract" of being an "Animal".... |
Forum: Java Mar 21st, 2009 |
| Replies: 7 Views: 415 @ClimaxBeetle: I appreciate your use of code tags in the very first post. But you haven't mentioned what your problem is, tell us why you have stuck. |
Forum: Java Mar 19th, 2009 |
| Replies: 6 Views: 530 private JLabel celsiusLabel;
private JLabel fahrenheitLabel;
private JTextField tempTextField;
private JButton button1;
public static void main(String [] args){
new CelsiusConverterGUI();... |
Forum: Java Mar 19th, 2009 |
| Replies: 6 Views: 530 > few different ways
And what were they ?
>how you would incorporate a main method into this program?
By writing:
public static void main(String [] args) |
Forum: Geeks' Lounge Mar 19th, 2009 |
| Replies: 19 Views: 931 Maybe the people cheated to pay their taxes, so with scarce funds maybe the govt. sponsored his education in parts so it took 9 years to get it done.
Why are people here so non-understanding. |
Forum: Java Mar 17th, 2009 |
| Replies: 7 Views: 2,167 No I did not because I was short on time and used the short, regex, instead, see my previous post. ;) |
Forum: Java Mar 17th, 2009 |
| Replies: 7 Views: 2,167 What you could also do is read the file line by line, the same way as you are doing now and match a pattern in the read line using the String... |
Forum: Java Mar 16th, 2009 |
| Replies: 9 Views: 443 This is pretty straightforward. you just need to convert these conditions into langauge syntax. You would need an if construct over here and since you need to check both the numbers you need a... |
Forum: Java Mar 15th, 2009 |
| Replies: 9 Views: 443 >If both numbers entered are over 100, then subtract 100 from each
>If both numbers are negative then add 200 to their sum.
Isn't this what you want to put in in the loop ? |
Forum: Java Mar 15th, 2009 |
| Replies: 9 Views: 443 >I am getting an error for the last line it is saying the maxOutput and minOutput can't be resolved.
Thats quite accurate on the part of the compiler. The reason it says this is because of this :... |
Forum: Java Mar 15th, 2009 |
| Replies: 3 Views: 290 >i create another constructor in d class and declare another statement outside the loop..
Are you creating another instance of 'fermi', I am not sure how that helps, but anyways if it solves your... |
Forum: Java Mar 15th, 2009 |
| Replies: 9 Views: 443 Instead of giving us th broad description of what you were supposed to do to start out with, where we have to figure out each and everything like the logic, methods, variables etc., give us directly... |
Forum: Java Mar 15th, 2009 |
| Replies: 3 Views: 290 The problem is you declare 'give' inside this while loop while(quit !=-1) but then this loop ends at the '}' after give.totalPlay();, so that the 'give' variable goes out of scope and at this... |
Forum: MySQL Mar 13th, 2009 |
| Replies: 4 Views: 884 Select resortname from table2 where resortid = (select MAX(resortid) from table1)
Try this. |
Forum: Java Mar 12th, 2009 |
| Replies: 3 Views: 268 System.out.println("Enter the name of the lab this computer is located: \t"); }
Remove the '}' in this line that is what causes the previous while loop to terminate "prematurely" and on the next... |
Forum: Java Mar 12th, 2009 |
| Replies: 15 Views: 975 >I found the best book to be google
Yes but sometimes you need a flow to what you are reading which is hard to get given the fact that you are looking up different articles written by different... |
Forum: Java Mar 11th, 2009 |
| Replies: 15 Views: 975 >I hate how resource hungry some java programs can be
Thats the thing from the Ice age. Now Java can really be as fast and efficient as some of the native language code.
>I did some searching... |
Forum: Java Mar 11th, 2009 |
| Replies: 4 Views: 1,114 Mark the thread as solved if it is. |
Forum: Java Mar 11th, 2009 |
| Replies: 3 Views: 344 for (guesses=0; guesses <= ichances; guesses++);
The semi-colon [;] at the end of the for loop makes this happen, remove it. |
Forum: Java Mar 11th, 2009 |
| Replies: 8 Views: 862 There are three methods in MouseEvent which could be of particular help, getX() (http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/MouseEvent.html#getX()), getY()... |
Forum: DaniWeb Community Feedback Mar 10th, 2009 |
| Replies: 5 Views: 844 |
Forum: Java Mar 10th, 2009 |
| Replies: 4 Views: 1,114 If it is profiling that you need to do on your program/application and not only the overall time required for execution, I would suggest you to use the profiling tool accompanied with modern day IDEs... |
Forum: C++ Mar 10th, 2009 |
| Replies: 9 Views: 295 Then I too cannot help you do your assignments, but believe me I will offer more than the traditional rituals in prayer to request GOD to help you get your assignments done. ;)
Okay on a more... |
Forum: C++ Mar 10th, 2009 |
| Replies: 9 Views: 295 The forum announcement here (http://www.daniweb.com/forums/announcement8-2.html) suggests that no one here would be willing to provide you homework help unless you show some effort. But I ain't much... |
Forum: Java Mar 9th, 2009 |
| Replies: 9 Views: 1,508 You can always restrict the size of the JLabel to disallow it to grow more than a specified size.
@OP : Mark the thread solve if it is. |
Forum: Java Mar 9th, 2009 |
| Replies: 9 Views: 1,508 |