4,084 Posted Topics
Re: Don't just look at social media. Even though it is an easy way to reach tons of people, it is usually 'unsollicited advertisement', and most people will just consider it being annoying, and you, maybe, a spammer. Look for pages that offer detailed information on hotels and such, and send … | |
Re: might be something wrong in your logic. the resp variable in your switch statement is not related to the resp variable in your displayUserMenu method. probably, you are not setting the value of the first variable right. | |
Re: parse it to a String, and that to an array of chars. | |
Re: "buying website traffic" ? what do you mean by that ? like buying "5000 likes for 50$" ? | |
Re: and what was your implementation of the compare method? | |
Re: you can pass the tablename, columnname id and new value as parameters: update <tablename> set columname = <new value> where id = <id> | |
Re: What have you tried so far? What exactly is it that you are stuck with? | |
Re: [QUOTE=dvdreplication;1715326]Interesting thread thanks for sharing and posting.[/QUOTE] some people consider threads where other people state that there poo looks like an elephant as interesting :) | |
Re: change the button name? you mean the text on it? a few remarks: stop using AWT classes, use the Swing classes instead. add an actionListener to your button, and in the perform method, call setText on the button. | |
Re: jsp's are compiled to servlets, so whether you manually code them or not, you'll be using servlets. Do realize, that a jsp is nothing but the UI. the chatting itself is not (or better: should not) be processed/executed in your jsp, the jsp is just to illustrate the chat. This … | |
Re: for that, you should have checked [this thread](http://www.daniweb.com/software-development/java/threads/99132/starting-java-java-tutorials-resources-faq) | |
Re: how do you see eclipse crashes while creating a jar if you don't get an error in your console? is there any indication there's something wrong? | |
Re: ehm... It is missing? You are the only one who knows what your code is supposed to do, and what it is doing, so you are the only one who can say what is wrong with it. As for your add method: there isn't any. Please be specific about what … | |
Re: All I see here is your assignment. Please show us what you have done so far, and ask specific questions. In case you wondered: no, we're not a "homework on command" task-force. | |
Re: Hsn_1: one of the reasons that you might not get an appropriate answer, is because you are asking it in the wrong places. You seem to be confusing between Java and JavaScript. They're about as much alike as a Car and a Carpet. When it comes to JavaScript, you may … | |
Re: 40% is a pass? well, if you go to a school like that, no wonder this seems 'hard'. | |
Re: There are tons of examples online. Also several libraries just for this. Please look into something before just asking. | |
Re: tobyITguy: > But if your planning a bombing, they would stop you dead on your tracks. how exactly are they to know you are planning a bombing? "ooo... that guy goes to radio shaq waaay too often, must be buying equipment to build bombs" ? Well, I hope for you … | |
Re: There is one major mistake I see in your design (only had a quick glance) `public class Controller extends JFrame {` A Controller should contain nothing but business logic (that what you might call the 'back-end' (or what is directly contacting the back-end)) of the application. You're not supposed to … | |
Re: any return statement will end the method. consider this method as "my code runs, until the requirement is met and the method is flagged as 'ended'. this is exactly what the return keyword does (even in a method with no returntype - void ) here, your signature reads: `public static … | |
Re: String[] input = file.split("\\\\") have you checked the result of this, the size of input? might be it "splits" to one element, being the original String. | |
Re: so... what is stopping you? why do you think there is any difference between this, and storing any other value in a database? | |
Re: you need to reset the value of age within this loop: do { //if(age < 5 && age > 10) System.out.println("p1 enter your name please"); p1name = userin.next(); System.out.println("p1 enter your age please"); p1age = userin.nextInt(); } while(age < 5 || age > 10); To shortly explain why this loops: … | |
Re: Start4me: if that error message is to difficult to solve, you should stop working with JOptionPane, and start at the beginning. first learn about primitive types, then about Objects, then about the differences between the two. | |
Re: have you tried declaring the type of the elements of the ArrayList? | |
Re: "now it has started giving problem" ... this is a bit vague. Have you been able to reproduce the problem while debugging? is there logging? how do you know for sure where the code hangs? are you sure it's not your connection? | |
Re: I'm more irritated by the 'modern' phrases: - Yolo ! and all that crap. Believe it or not, I actually know someone who actually says "lol" when she hears something funny. She doesn't smile, just says "lol" ... Not sure she ever noticed the irony, she certainly never said it … | |
Re: Reverend Jim: > Availability is always limited. There is ever only a finite number of items. Are you sure of that ? It always seems there is an unlimited amount of morons out there (and they all seem to have internet access). | |
Re: Having an idea is one thing. Then come the next step(s): 1. find funding 2. find out HOW to do it 3. try and get it done in such a way, that you can set the price as something that can compete with current technologies. 4. be able to sell … | |
Re: This thread was started two times. Follow the answers already given at the [other thread](https://www.daniweb.com/software-development/java/threads/496443/payroll-tax). | |
Re: can you please edit your post. make a separation between your code, your analysis and your actual question. it's pretty hard to make anything out. Your question itself should be short and to the point, so we'll quickly know what to look for, the rest, which are basically tools for … | |
Re: first of all: what you link to is not a 'website', rather a 'webshop', a huge difference. for a webshop, find out what people are actually interested in the products you sell. update your stock and items regulary, don't keep the same items for over a year, without ever thinking … | |
Re: usually, you take a new version for the improved code, the new functionalities, ... considering the fact you've missed two major releases already, I would assume the differences between what you are using and what's new is substantial. 'Why we need to prefer the new version' You don't "need" to … | |
Re: don't double post [Your question on StackOverflow](http://stackoverflow.com/questions/30457197/java-else-if-statement) | |
Re: Indent your code first. It'll at least make it readable. | |
Re: .... no offence, but if you think that the above post contains enough information for us to be able to even consider helping, my guess is you don't use the tool how you're supposed to. | |
Re: You are trying to parse a variable that hasn't been initialized yet (so has the default value, null) to a number. There is no value, so also not a numerical value which can be parsed. This causes the exception. If you want the user to enter the data by input … | |
Re: @Override is an annotation that makes it more clear that you are overriding the method of a superclass, and that adds validation on whether or not you are in fact (correctly) overriding a method. For instance, if you were to add: public boolean equals(MyObject o){ ... } Some think that … | |
Re: that is because you do this: `putTogether[i] += lastLetter + ". " + secondToLast + ". " + lastNames[i];` Saying: the new value is the existing value, concatenated with wath follows after the += The existing value at that point, is null. so, change that line to: `putTogether[i] = lastLetter … | |
Re: Check whether or not it has the name/extension/... you expect it to have. Then, check your Windows configuration. show 'hidden files'. | |
Re: And you expect us to explain where your code should/could be imrpoved, without seeing your code? | |
Re: You are working with local variables which you don't update. from within your main method, I copied this and kept only the lines handling those variables. int stuidnum, courses= 0; int grde = 0; System.out.println("courses pursued"); System.out.println("the courses pursued are " + courses); System.out.println("the grde is " + grde); so, … | |
Re: you have an array of Strings, and you would return an integer? what you could do: instantiate a list: List<String> alreadyChecked = new ArrayList<String>(); for ( i = 0; i < array.size(); i++){ // step 1 ->check if the String is already in the list: // if so: break; // … | |
Re: > a fault tolerant program is a program that is not vulnerable to errors. if this is so, there isn't a single fault tolerant program in existence. every program is vulnerable to errors. What you can do, however, is anticipate them. Anticipate every single error that might occur, and implement … | |
Re: Wiggles: you do understand that this is a 6 year old thread, right? When showing off code, make it good code. public double getSide(){ return side; } public double getArea(){ return getSide() * getSide(); } Can you come up with any reason that the above, as you have it, is … | |
Re: if you can't get the solution, you haven't "tried all". there's at least one thing (the correct approach) you have not tried. you don't even bother to show us what you've tried, so why should we help you? unlike what some people believe, this is not a "gimme codezzzz" forum. | |
Re: this might just as well be a financial strategy error from your part, not related to SEO or anything else. your SEO might be perfect, but if the search results are not appealing to people, you won't sell anything. don't just put stuff up for sale: check what it is … | |
Re: so it worked for a few days and all of a sudden "poof" ? well, a good place to start looking is into what in your configuration changed. Did you install a new JDK? did you change anything in your environment settings? anyway, none of this just happens out of … | |
The End.