4,084 Posted Topics

Member Avatar for adil_bashir

and try to be clear and consistent. there is an int (the primitive) and there is the Integer (which is an Object).

Member Avatar for stultuske
0
171
Member Avatar for adil_bashir
Member Avatar for adil_bashir
0
183
Member Avatar for lalaZai

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 …

Member Avatar for stultuske
0
115
Member Avatar for sagar2dumbre

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].

Member Avatar for stultuske
0
113
Member Avatar for gowans07

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.

Member Avatar for DavidKroukamp
0
99
Member Avatar for Sanna.1

[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 …

Member Avatar for Ezzaral
0
125
Member Avatar for KazenoZ

I assume you are refering to your workspace? just click File and then the 'Switch Workspace' menu item.

Member Avatar for Zhoot
0
247
Member Avatar for mhd_arif123
Member Avatar for mhd_arif123
0
148
Member Avatar for kalcio

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?

Member Avatar for kalcio
0
2K
Member Avatar for connoisseur2010
Member Avatar for stultuske
0
93
Member Avatar for mohamed moamen

is an exception message thrown? is there no zip file created? how do you know there is a fault?

Member Avatar for mohamed moamen
0
336
Member Avatar for davy_yg

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]?

Member Avatar for davy_yg
0
355
Member Avatar for dennysimon

try the getStackTrace() method. you can then write the entire stacktrace in a log file, so you'll miss no lines.

Member Avatar for dennysimon
0
168
Member Avatar for Sanna.1

or : [Code=Java] private boolean getBoolean(){ if ( expression1 && expresssion2 && expression3 ) return true; return false; } [/Code]

Member Avatar for JamesCherrill
0
294
Member Avatar for William Blore

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 …

Member Avatar for lps
0
77
Member Avatar for asif49

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 :)

Member Avatar for Airshow
0
157
Member Avatar for asif49

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.

Member Avatar for asif49
0
114
Member Avatar for missc

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 …

Member Avatar for stultuske
0
201
Member Avatar for Kalle21

[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.

Member Avatar for stultuske
0
116
Member Avatar for stultuske

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 …

Member Avatar for stultuske
0
220
Member Avatar for ganesh641

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.

Member Avatar for stultuske
0
81
Member Avatar for justin08

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 …

Member Avatar for stultuske
0
194
Member Avatar for furqanishaq
Member Avatar for kexkoj

I'm not really following your logic here. your deposit onto an account is an ArrayList???

Member Avatar for kexkoj
0
175
Member Avatar for krejar

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 …

Member Avatar for krejar
0
121
Member Avatar for Nana88

you don't need to create a thread to talk to yourself, you can do that out loud.

Member Avatar for stultuske
-4
155
Member Avatar for mallikaalokam

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 …

Member Avatar for DavidKroukamp
0
145
Member Avatar for wallet123
Member Avatar for Kalle21

well, if you write the code for the pseudocode JamesCherrill provided, you should be almost finished.

Member Avatar for stultuske
0
105
Member Avatar for wallet123

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

Member Avatar for wallet123
0
351
Member Avatar for kartik1997

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, …

Member Avatar for stultuske
0
143
Member Avatar for softDeveloper

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.

Member Avatar for stultuske
0
204
Member Avatar for frogboy77

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: …

Member Avatar for zeroliken
0
104
Member Avatar for DavidB

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 …

Member Avatar for GrimJack
0
127
Member Avatar for Gsterminator

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 = …

Member Avatar for Gsterminator
0
200
Member Avatar for ndrichim

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].

Member Avatar for ndrichim
0
205
Member Avatar for mrod123

or read a line as a String and use the split method to get an array based on that String.

Member Avatar for stultuske
0
234
Member Avatar for jehlaipixy

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.

Member Avatar for jehlaipixy
0
451
Member Avatar for nicolemarie

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.

Member Avatar for stultuske
0
276
Member Avatar for jehlaipixy

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?

Member Avatar for stultuske
0
1K
Member Avatar for mahimahi42

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.

Member Avatar for stultuske
0
142
Member Avatar for long89

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.

Member Avatar for long89
0
154
Member Avatar for Kjeks

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 …

Member Avatar for JamesCherrill
0
386
Member Avatar for davy_yg
Member Avatar for stultuske
0
278
Member Avatar for Johnson0803

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 …

Member Avatar for stultuske
0
112
Member Avatar for nore

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.

Member Avatar for nore
0
137
Member Avatar for subone

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?

Member Avatar for hfx642
0
290
Member Avatar for sonicx2218

what have you tried so far? EDIT: having three methods does not mean you need three separate classes.

Member Avatar for stultuske
0
156
Member Avatar for rushikesh jadha

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.

Member Avatar for stultuske
0
83
Member Avatar for ilovejava

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, …

Member Avatar for ilovejava
0
207

The End.