4,084 Posted Topics
Re: don't use the "drag and drop method". it generates hardly readable, even harder to maintain and very crappy code. you'll be in a lot of trouble trying to debug that. rewrite your classes in a way you understand them (do hope you seperated your GUI from your other layers). if … | |
Re: never met him, so I won't start on whether he's "good" or "nice". sure had some talent as an actor, even though the Fast & Furious series he was most known for, aren't really the type of 'great acting' movies. liked him in Timeline, though. | |
| |
Re: well, this code looks very fishy to me: String[] t=new String[arr.size()]; t=arr.toArray(t); for(String j:t){ return t; } 1. declare your t array outside of the loop, don't create a new instance each iteration, just overwrite the existing one: String[] t; while ( condition ){ // ... t = new String[arr.size()]; … | |
Re: and change books/courses: if it has J2EE in the title, chances are high it is outdated, since J2EE became out of date early 2006, when it was replaced by Java EE 5 (and has been called Java EE x every since) Another good thing to realize: don't go for "shortest … | |
Re: why would you? installing the jre (if it's not installed by default, that is) is simple and it's free of cost. another way of doing so, would be: don't write your applications in a language that depend on a (J)VM to run it in. | |
Re: why exactly do you have that 'InteractiveCampaignManager' class? | |
Re: hosting is providing a server, with the necessary functionalities to support all your needs. hosting means you can upload your webapp/website on their server, and they'll maintain the actual server it runs on. might be you get a number of email addresses, might be you can have your own url, … | |
Re: if the goal is to "quickly gain reputation points", you're doing something wrong. the reputation a user gets is basically irrelevant. you should be here either to help learn, or to learn yourself. having a good rep is nice, but if you can't help out people without having the best … | |
Re: my post count dropped with (almost) 10, as for reputation points, I've lost about 500. must 've been some popular posts that got removed from the count :) | |
Re: what kind of content has been changed? if it's an image you linked to from another page, might just be the owner replaced the image. if it's part of the wordpress text, maybe there's been an update of their material. anyway, wordpress isn't the best way to create a website … | |
Re: not sure what to think of it, after all, it's a reply to a dead thread. but some advice: I would be careful with code like this: catch (FileNotFoundException fe) { } this is just hours of needles debugging waiting to happen. | |
Re: kind of doubt it. nowadays you need a google account to be able to get access to stuff that didn't use to require it. that also explains part of the increase in numbers. Google+ has it's pro's, no doubt about it, but it attracts a different type of user when … | |
Re: Diafol: whether you agree with it or not, JWenting has as much right to an opinion as you or I. I assume he's referring to a lot of people who adore Mandela and treat him as if he never made a mistake in his life, or walked the 'path of … | |
![]() | Re: [this](http://forums.netbeans.org/post-133984.html) might be able to explain it. |
Re: help you with what? what kind of solution are you looking for, or what problem are you trying to solve? it's a supply and demand market, no changing that. 6 months of experience is basically the same as none. you're a junior developer, so no, you won't be paid the … | |
Re: Ramesh: welcome to DaniWeb. do understand that this thread is almost five years old, and is not (really) related to your question. please don't hijack/revive dead threads. just create a new one, in which you explain what your problem is and your code. | |
Re: ehm... you can use photoshop, paint shop pro, even paint, if you're good enough at it. | |
Re: ehm... this is not something you can do just "code based". most likely you'll need some costly hardware to go with it, and you can make the service "free", but it's likely you'll still have to pay for it. | |
Re: well, if you write it to be a standalone app, why wouldn't it be possible offline? but , that would bring in the disadvantage that only on your local pc the data can be updated, and it can not work with online resources. of course you could also have a … | |
Re: if you go in a prompt, and you run `java -version` does it find your installed Java? | |
Re: what exactly are you trying to do and what do you mean by "doesn't work". do you know what 'setSelectedItem' does? | |
Re: do you own (a) factory(ies)? if not, don't get into it. chances are, the recipe you'll be using will either not pass legal control (too unhealthy) or look too much like an existing drink (just wait and watch the lawsuits roll on in, and those companies can afford it) developing … | |
Re: and you assume America hasn't got access to Facebook/Twitter/Google? | |
Re: that is because a primitive can not be null. null is when you have an Object that is not yet instantiated. you'll need to verify first whether or not you have null there, before trying to parse it to an int, and provide a default value or throw an Exception. | |
Re: pelle12: then again, why would anyone run a native Windows executable on Linux? | |
Re: why don't you just put the words in a .txt (or whatever) file and read them from your application? it's a lot easier if you want to add or remove words from the list | |
Re: ehm ... usually <a href > does that. but when you do that, and you want your site online, you'll have to put those files somewhere online. | |
Re: since this thread is 5 years old, I doubt the OP's still following it. | |
Re: and choose to pay with paypal. I've had a problem like this before, I could show that I had contacted the seller about not delivering, Paypal didn't make a fuss, they just returned my money. | |
Re: something tells me a travel agency 'll have more information on that than we do. | |
Re: and have you checked where that exception is thrown? | |
Re: Sohanlal: you are facing what problem? start a new thread and post the exact error YOU get in there. don't continue this thread, since it's a dead thread that shouldn't have been revived. | |
Re: > whenever i retrieve the radio button value and compare it with the database value it is not comparing it either you are comparing it, or you aren't. which is it? and what code is it that isn't working? I assume it is this part? if (cans.equals(ans)) { out.println("works"); } … | |
Re: chances are pretty good it's a jquery plugin. by taking a look at the source code of that page, these might be a good place to start your research on: <link rel="stylesheet" type="text/css" href="ddsmoothmenu.css" /> <script type="text/javascript" src="js/jquery-1.6.4.min.js"></script> <script type="text/javascript" src="js/jquery.mousewheel.js"></script> <script type="text/javascript" src="js/jquery.jscrollpane.min.js"></script> <script type="text/javascript" src="ddsmoothmenu.js"></script> | |
Re: never worked with jsf or portlets, so I'll leave it to that, you're definitely wrong in your last answer, though. 'Can I restart a completed thread?' No, you can't. what you can do is start a new one of the same type, just not the completed one. that one's gone. | |
Re: 1a you can't add a book in the book class. instantiate it in your main method, and add it to an array or a list. 1b on your instance of book, call the printDetails method 1c iterate over your array or list, printing the info of each of them question … | |
Re: a "quick fix" to reverse a value, is to turn it into a String, and reverse it's characters. after that, parse it back to a double. you'll save yourself quite some logic/work. | |
Re: please ask a more clear question. | |
Re: what you are doing is assuming the garbage collector will actually run. it may, or may not. but, do realise, that you also create an array, several String's, ... anyway, all you can do is request the garbage collector to run, but in the end it's the JVM that will … | |
Re: since we have no idea what LoginDao.validate(obj); does, how it validates, or what it returns, there isn't much we can help you with. one good advice though, learn how to use servlets. putting actual Java code in your jsp files is very bad design. | |
Re: I'm a bit puzzled about this part: if (num == 0) { System.out.println("No numbers were entered except 0"); } else if (num != 0) { System.out.println("The number of integers is " + num); } else { System.out.print(num); } for which value of num do you think it'll reach the last … | |
Re: actually, I would write it a bit like this: nameFruit = input.next(); while (!nameFruit.equalsIgnoreCase("Stop")){ // read price and sold // add code to handle information nameFruit = input.next(); } for more precise answers, you may want to clarify your question a bit further. | |
Re: a few remarks. a few small refactorings, to make your code in less lines, and more readable. `if ( btnOne.isSelected() == true )` this is actually the exact same as: `if ( btnOne.isSelected() )` and it's better to use an if-else statement, rather than two ifs. that way, your value … | |
Re: through a terminal/prompt/... if it's a class file you are trying to run: `java MyClass` if it's a jar file: `java -jar MyJar.jar` but honestly, if you don't know how to do this, or not even how to find this information on the net, you really shouldn't be working with … | |
Re: Strings are not meant to be used in mathematical equations. String represent flat text. why wouldn't you be allowed to parse to a numerical value? | |
Re: you can't/shouldn't. as far as your Card class is concerned, the CreditCard class doesn't exist. | |
Re: start simple: a space invaders clone. first part: just the graphics, no moving parts second part: have your own spaceship shoot (straight line up) third part: have the invaders you hit 'die' and add points to your total fourth part: allow your own spaceship to move to the left and … | |
Re: why not? [here](http://stackoverflow.com/questions/13249613/cannot-read-an-image-in-jar-file) you'll find how to use an image that's stored in the jar file. |
The End.