Forum: DaniWeb Community Feedback 26 Days Ago |
| Replies: 13 Views: 1,053 |
Forum: Java 26 Days Ago |
| Replies: 4 Views: 427 The way your totalCost() method is now makes sense except for double finalCost = stickerPrice - (1 - stickerPrice*discount);//why are you subtracting from 1??
If you are going to be multiplying by... |
Forum: Java 26 Days Ago |
| Replies: 4 Views: 427 A lot of commenting is a good thing, its a great habit to have, because it helps others read your code and makes it more organized when you have very large projects, comment away.
final cost is... |
Forum: Java 28 Days Ago |
| Replies: 7 Views: 383 What errors? I don't see any in the code. However you do declare DISCOUNT_ONE DISCOUNT_TWO and DISCOUNT_THREE in your main method, which you don't need because they are used in declared in... |
Forum: Java 29 Days Ago |
| Replies: 7 Views: 383 Alright, lets go through what you need to output step by step.
You want to output the original price of the item, which works, although I would change public static void calculatePrice(double... |
Forum: Java Oct 11th, 2009 |
| Replies: 10 Views: 559 Not really lol. I never had to integrate them with webpages, I just had to make some for a class once. I'm sure someone else around here will know. |
Forum: Java Oct 10th, 2009 |
| Replies: 10 Views: 559 Read the Java tutorial on applets, here (http://java.sun.com/docs/books/tutorial/deployment/applet/getStarted.html). You are missing a key method every applet needs. |
Forum: Java Sep 23rd, 2009 |
| Replies: 5 Views: 319 The caps are unnecessary, don't use them.
Secondly, there is nothing wrong with the code, it works perfectly, what you have is a logic error. The problem is in your line
System.out.println(a);... |
Forum: Java Sep 22nd, 2009 |
| Replies: 4 Views: 434 Your link doesn't work, you have an extra http://
Here (http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html) is a working version of your link :) |
Forum: DaniWeb Community Feedback Sep 18th, 2009 |
| Replies: 7 Views: 819 If you change the default number of posts per thread in your control panel you can view it as one page. This can be a temp fix for you while Dani is sick. |
Forum: DaniWeb Community Feedback May 20th, 2009 |
| Replies: 17 Views: 1,521 I tried in both IE7 and FF 3.5 Beta 4. Yeah I can get to the window, it just won't upload. |
Forum: DaniWeb Community Feedback May 20th, 2009 |
| Replies: 17 Views: 1,521 When I click upload the upload manager just becomes a blank white screen. |
Forum: Java Mar 22nd, 2009 |
| Replies: 19 Views: 868 In addition to what James has said; if you want to be able handle more than one client you will need to create a thread for each client that connects. |
Forum: Java Mar 20th, 2009 |
| Replies: 3 Views: 921 When I made a chat application I had the same problem. If you had googled a little harder you could have found this solution.
//incoming is the JTextField that displays the conversation
//doc is a... |
Forum: Geeks' Lounge Mar 18th, 2009 |
| Replies: 19 Views: 951 Sure. I love cookies :)
@Serkan
Just give up the argument. Cheating is bad. It is as simple as that. Look at the definition of cheat, nothing good is said about it. You should have let the... |
Forum: DaniWeb Community Feedback Mar 16th, 2009 |
| Replies: 5 Views: 715 I didn't know it was supposed to appear on posts. If I click on your username, I have the option to visit your homepage. |
Forum: Java Mar 16th, 2009 |
| Replies: 2 Views: 1,578 boolean display = A.B(inputInfo);
The return statement you used is legal. You can return false, true, or a boolean variable when using a boolean method. When you call A.B() that line of code... |
Forum: Java Mar 16th, 2009 |
| Replies: 11 Views: 1,259 Why would you do this in your GeometricObject class? Just create a driver class, here's the one I made.
public class Tester {
public static void main(String[] args) {
Triangle tri = new... |
Forum: Java Mar 16th, 2009 |
| Replies: 11 Views: 1,259 If all that code is one Java file than that could be the problem. I separated each class GeometricShape, Triangle, Isosceles, Equilateral, into it's own file and had no trouble running a driver class... |
Forum: Java Mar 16th, 2009 |
| Replies: 7 Views: 2,331 Easy is relative, what might be easier for some could be really hard for you.
Google StringTokenizer examples, read the API and then start writing some code. When you have shown some effort come... |
Forum: Geeks' Lounge Mar 16th, 2009 |
| Replies: 64 Views: 3,892 Maybe you should lobby to follow up on Rashakil's suggestion, Day Care (http://www.daniweb.com/forums/thread77095.html), but instead of creating a new forum, just rename this one :) |
Forum: Geeks' Lounge Mar 15th, 2009 |
| Replies: 64 Views: 3,892 I must be too stupid to figure out why you think I don't have a sense of humor? Although your old age of 95 might have something to do with it ;) My post wasn't supposed to be taken seriously... |
Forum: Geeks' Lounge Mar 15th, 2009 |
| Replies: 64 Views: 3,892 Rashakil Fol,
What don't I have a sense of humor about? You should have been more specific. |
Forum: Java Mar 15th, 2009 |
| Replies: 11 Views: 1,259 It doesn't help because you just threw code at the OP, didn't offer any explanation to what you changed and didn't even show what you fixed. You should point the OP in the right direction instead of... |
Forum: Java Mar 15th, 2009 |
| Replies: 11 Views: 1,259 public Triangle(double s1, double s2, double s3)
{
this.side1=s1;
this.side2=s2;
this.side3=s3;
}
public Isosceles( double EQside, double otherside) |
Forum: Geeks' Lounge Mar 15th, 2009 |
| Replies: 64 Views: 3,892 I think your attempt of "[making] [his] existence on this forum a miserable one." isn't working. He seems to be posting more often.
http://www.daniweb.com/forums/post818433-15.html |
Forum: Geeks' Lounge Mar 15th, 2009 |
| Replies: 3 Views: 688 This question has been asked so many times before. There is no list because Dani wants it to be a surprise, of sorts.
Here (http://www.daniweb.com/forums/showgroups.php) is the list of... |
Forum: Java Mar 13th, 2009 |
| Replies: 3 Views: 485 Your code doesn't even attempt to write to a file. It only reads. Try to write to the file and if you're stuck, show us your new code. |
Forum: Java Mar 11th, 2009 |
| Replies: 15 Views: 990 I personally recommend Head First Java. |
Forum: Java Dec 26th, 2008 |
| Replies: 37 Views: 1,693 It is important, that is why I agree that IDE's should not be used when first learning a language. But my point was certain IDE's can, if you truly want to learn, help you learn common method... |
Forum: Java Dec 26th, 2008 |
| Replies: 37 Views: 1,693 While I do agree with your post in its entirety I think using certain IDE's, such as Eclipse, can be very useful in learning the API. In Eclipse, whenever you access a method, it gives you a summary... |
Forum: Java Dec 25th, 2008 |
| Replies: 37 Views: 1,693 Uhh... how is this helpful?
I'm sure your book must show you examples of constructors, private methods and their uses. Anyways a private method is a method that can only be used in the containing... |
Forum: Java Dec 21st, 2008 |
| Replies: 13 Views: 1,045 If you're sleeping polyphasically that could be to much sleep :) |
Forum: Java Dec 18th, 2008 |
| Replies: 5 Views: 491 "missing return statement" is saying there is a way question() could run without ever coming across a return statement. It's hard to tell where it needs to go in that un-formatted code but seeing as... |
Forum: Java Nov 29th, 2008 |
| Replies: 12 Views: 1,018 And I want a billion dollars :-/ |
Forum: Java Nov 29th, 2008 |
| Replies: 12 Views: 1,018 What have you done on this problem? Show us some effort and maybe you will receive help. Also, try google. |
Forum: Java Nov 26th, 2008 |
| Replies: 10 Views: 4,176 If you notice the OP did try to use code tags, just made a little mistake on the second one. |
Forum: Java Nov 19th, 2008 |
| Replies: 7 Views: 501 What you need to do is mark the thread as solved, so people don't read the whole thing to realize it has been solved. Just for future (and present) reference. Thanks :) |
Forum: Java Nov 17th, 2008 |
| Replies: 22 Views: 1,305 I have never had trouble running a server and client on the same machine before, but I haven't looked through the code here to see if they are doing anything different than I usually do. However in... |
Forum: Java Nov 11th, 2008 |
| Replies: 8 Views: 570 Peter already said what to do. He said do not exit the program, provide a helpful message to the user and then go back "to the point the file name been submitted for new entry". |