4,084 Posted Topics
Re: and try to be clear and consistent. there is an int (the primitive) and there is the Integer (which is an Object). | |
Re: exactly the same way you pass any other variable as a parameter | |
Re: create an Object which hold all this information in it's instance variables, and create either an array or list of objects of that type. ps: this is not 'urgent' to most of us (well, none of us, except you maybe) and it's also very basic, you should be able to … | |
Re: I've always considered the O'Reilly books to be a good choice, you may want to take a look at [URL="http://search.oreilly.com/?q=struts&x=0&y=0"]this page[/URL]. | |
![]() | Re: to add to the above: don't think you'll speed up by skipping what you think look like 'too basic', since you're post makes it clear you 're not all too familiar with the basics. |
Re: [QUOTE=Sanna.1;1755108]hello how do you get three strings in to a boolean. Number 1 is greater than the number 2, which in turn is greater than third Number 1 is greater than one of the numbers 2 and 3, but not greater than both Number 1 is greater than at least … | |
Re: I assume you are refering to your workspace? just click File and then the 'Switch Workspace' menu item. | |
Re: is [URL="http://www.inliteresearch.com/barcode-recognition/"]this[/URL] what you're looking for? | |
Re: well, for variables in an interface, you can only declare Constants, so I don't think you should declare a JProgressbar there. could you show us your code, so we can see a bit more of what you are doing? | |
Re: what do you mean? you don't know what to program, or how to program? | |
Re: is an exception message thrown? is there no zip file created? how do you know there is a fault? | |
Re: I don't see a AboutNavBox id in your code, so I think you'll have to remove the 'Box' from the id in your css code. There are numerous free to use jQuery scripts that do this sort of tasks for you. are you looking for something like [URL="http://blog.evaria.com/wp-content/themes/blogvaria/jquery/index.php"]this[/URL]? | |
Re: try the getStackTrace() method. you can then write the entire stacktrace in a log file, so you'll miss no lines. | |
Re: or : [Code=Java] private boolean getBoolean(){ if ( expression1 && expresssion2 && expression3 ) return true; return false; } [/Code] | |
Re: ehm ... are you talking about being a webmaster, or creating webapplications? a lot of what you are asking depend on information you are not giving yet: are you going to host your website yourself, if not, what technologies will you use (limited by what the host you will take … | |
Re: couldn't that also be done by something like: [Code='JavaScript'] <input type="text" name="query" id="queryId" /> <input type="button" value="submit" onClick="runMe()" /> [/Code] [Code='JavaScript'] function runMe(){ var queryVar = document.getElementById("queryId").getValue(); } [/Code] or something similar? I don't really use Javascript that much, so might be completely wrong :) | |
Re: long time since I had to do that, you may want to search for the onHover event in javascript. if by triggering that (instead of onClick) should work. | |
Re: how exactly do you mean? without using oop, you can have something like this: [Code=Java] public class Test{ public static void main(String args[]){ addItem(1); } public static void addItem(int item){ } } [/Code] but I doubt this is what you're looking for. normally, I expect an Item to be an … | |
Re: [Code=Java] System.out.println(sum+ ""); sum+=2; [/Code] in your other class, you're doing actually the same as this, but there you are using counter. so, copy-paste the print command in the other class, and change sum to counter. | |
is it possible to add a functionality to 'flag a bad pm', like the 'flag bad post'? I just got this pm [Quote="kwasiy"] Dear associate, The bank directors mandated me to look for any known relation of our late client who deposited a enormous amount of money in our bank … | |
Re: it would mean changing your script. if you go through your script.js file, you can see that these events (hiding and showing) are triggered by onmouseover and onmouseout, that's causing the menu to show/hide when you move your mouse over it. | |
Re: or, read the file line by line, create a simple object OrderSlip which will contain all the info for one orderslip and, if you know up front how many orders you will have, create an array of orderslips in which you store the info, otherwise, add them to a list … | |
Re: I'm not really following your logic here. your deposit onto an account is an ArrayList??? | |
![]() | Re: int i = 0; return i; this will always return 0, and you are not actually setting a value that is used outside of that get method. a getter also isn't the right way to set values. what exactly is it that you are trying to do? which value should … ![]() |
Re: you don't need to create a thread to talk to yourself, you can do that out loud. | |
Re: 1. what are you trying to do here: String public class Poco 2. public String getText()// an error:illegal start of expression { return h; return d; } you can have only one return statement executed, so, if you want several returns in one method, it would be a bit like … | |
| |
Re: well, if you write the code for the pseudocode JamesCherrill provided, you should be almost finished. | |
Re: yes. you want for each letter (A, B, C) how many times a grade has been entered, so: [Code=java] int total = total+grade; if ( grade == AValue ) a+= 1; else if ( grade == BValue ) b+= 1; [/Code] a bit like the above suggestion would do | |
Re: not to mention this looks like a LOT of repeating code. it's not so difficult to create a class containing: String question, answer1, answer2, answer3; and a flag to check what the right answer of the three is. that way, you could just write a while loop having the question, … | |
Re: define 'nothing happens'. your action isn't performed, your db is not updated with the text, ... do you get an error message in your logs? to submit a large amount of text' insert text into table' ... maybe your text is just too long for your column to contain. | |
Re: of course it would be easier if someone flags your post as 'not relevant or wrong', that they should state why, so the actual poster might explain himself better, or understand where he went wrong. on the other hand, there are tons of posts 'out there' with as only contents: … | |
Re: well, there are several commercial solutions to the problem out there, and also some freeware applications that can help you out. another way would be to buy one of those turntable-to-mp3 with built in casette dech. anyway, I haven't tried any of them myself yet, so I can't really recommend … | |
![]() | Re: I do have some questions here. first of all, why do you initialize v before you know if you'll need it or not? in case you don't need it, you're just occupying memory and resources for something you don't need. but, here: [Code=Java] while(current!= null){ if(newData != current.getElement()){ current = … ![]() |
Re: yep, with formatting. there are several ways of doing that, manually by setting a number of chars, but if you want a decent way, I would suggest you read on about [URL="http://java.sun.com/developer/technicalArticles/Programming/sprintf/"]Formatted Printing[/URL]. | |
Re: or read a line as a String and use the split method to get an array based on that String. | |
Re: not sure if I understand you correctly, but it looks to me like your DataSet class must implement your Filter interface and it's methods. as for polymorphism, if your DataSet class implements the Filter interface, it will always pas an 'is a Filter' test. | |
Re: class ProgrammingProject01 { public static void main(String blabla[]) { System.out.println("Hello"); World world1 = new World(); Turtle turtle1 = new Turtle(world1); } [B]}[/B] that bracket closes your class. remove it, and put one after your drawN1() method. | |
Re: I ... don't really see a question in there? did you forget to post it, or is this just a snippet you want to share with the community? | |
Re: I doubt you need a loop for that, take a look at the [URL="http://docs.oracle.com/javase/6/docs/api/javax/swing/JTextField.html"]api's[/URL] for jTextField. I'm sure there are some listeners mentioned that can help you check your content of the field every time the value changes. | |
Re: basically, the same way you always compare Strings, by the equals method. have you tried to do what JamesCherrill suggested? if you have any trouble implementing it, show us what you tried. | |
Re: well, the api's state that a NoClassDefFoundError is: [QUOTE]Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and no definition of … | |
Re: try by adding a [Code=CSS] #AboutNav{ } [/Code] block in your css | |
Re: do x times ( x = the amount of users) - read user information - store user information do ten times - generate random winning number - store generated number in array do x times - set flag to true (true = got all numbers correct) - do y times … | |
Re: either your application was not deployed to the tomcat server, or it was not started. go to: [url]http://localhost:8080/[/url] and check the list with deployed/started webapps. | |
Re: what book are you using? almost all books I 've used contained examples and exercices , with the corrections at the end of the chapter. also, what kind of "exercices" are we talking about? configuring your spring project or more of the hello world type of thing? ![]() | |
![]() | Re: what have you tried so far? EDIT: having three methods does not mean you need three separate classes. |
Re: please, do us all a favour and stop starting threads that start or end with please help without doing any effort yourself. [URL="http://forums.netbeans.org/ptopic24801.html"]This[/URL] obvious answer could be found by doing a simple search with google, or on the netbeans forum. | |
Re: why do you have a size ánd a capacity? normally, this is one and the same value. since you start of with the values: size = 10 length = 1024 what exactly do you think this will do: [Code=Java] if (size != theArray.length){ E[] newArray = (E[])(new Object[size *2]); System.arraycopy(theArray, … |
The End.