3,927 Posted Topics

Member Avatar for RekhaRajan

[B]> am helpless[/B] Then you're failing. Help is offered here to those who show effort. This is not a homework completion service.

Member Avatar for f_atencia
-2
65
Member Avatar for samppb

@nezachem: start() is an Applet life cycle method though. I believe that's why he has that code in start().

Member Avatar for Ezzaral
0
127
Member Avatar for dawnoflife

If you look at this line of the stack trace[CODE]at lab2.readFile(lab2.java:92) [/CODE]it indicates that the error occurred on line 92 of your program and the error was InputMismatch when it tried to process the nextInt() call. Most likely you input something that was not an integer and nextInt() expects an …

Member Avatar for jon.kiparsky
0
190
Member Avatar for *Java*
Member Avatar for ahmed_fawzy
Member Avatar for Ezzaral
0
73
Member Avatar for Ravshan

[B]> My project is to...[/B] Re-read that part. Now, re-read it again. It's an important concept - the "my" part. If you have specific questions, ask them. Demonstrate you have made the slightest effort on this or even given it any serious thought.

Member Avatar for Ravshan
0
159
Member Avatar for chess2009

Perhaps you misunderstood what Jon posted? I can't even understand what you're attempting to say here.

Member Avatar for Ezzaral
0
367
Member Avatar for bibiki

Looks reasonable to me. How are you calling [iCODE]ndihmesePaint()[/iCODE]? If you are calling it from the event dispatch thread, such as from a button click, then your repaints() may be getting blocked on the queue.

Member Avatar for bibiki
0
129
Member Avatar for ady_1

You'll need to make sure the J2EE libs are included on your build classpath. You can read about doing this with ant here: [url]http://download.oracle.com/javaee/5/tutorial/doc/bnaan.html#gexah[/url] or perhaps you may want to look where you got the example code from to see if they have any instructions for use with their build …

Member Avatar for ady_1
0
125
Member Avatar for end3r

Do you have a component in the center region? If the toolbar is the only component in the north region and you have a component in the center, setting the toolbar to not be visible is sufficient and the center component will expand to fill the area that previously displayed …

Member Avatar for end3r
0
439
Member Avatar for Phil++

[QUOTE=Mattox;1488654]Do you want to take a String an make a char array out of it? If so, This is one way to do it. [CODE] String name = "Phillip"; char[] arrayName = new char[name.length()]; for(int i = 0; i < name.length(); i++)//.length() is a method for the String class, so …

Member Avatar for mKorbel
0
158
Member Avatar for carlitosway17

It says more than that. The stack traces will indicate the exact error and the line it occurs on. Read them carefully.

Member Avatar for carlitosway17
0
201
Member Avatar for thedalek

Don't use [ICODE]==[/ICODE] or [ICODE]!=[/ICODE] to compare Strings. Use the [ICODE]equals()[/ICODE] method. Also indent you loops and if() blocks. It makes the program flow much easier to follow.

Member Avatar for thedalek
0
159
Member Avatar for sirlink99

Did you import Highscore? Where is the Highscore class coming from. What "api" you are referring to?

Member Avatar for sirlink99
0
191
Member Avatar for rogba
Member Avatar for ccaatty

Do you just want hot keys for some buttons, which require you to hold down the Alt key to access? Or do you need them to respond directly to key typed events? You can set mnemonic hot keys with [ICODE]setMnemonic()[/ICODE] on each button. If they have to respond to keys …

Member Avatar for mKorbel
0
2K
Member Avatar for kiko11

[CODE]update [tableName] set [valueFieldName] = [valueFieldName]+[amount] where [row criteria expression][/CODE] Use [ICODE]Statement.executeUpdate()[/ICODE] or [ICODE]PreparedStatement.executeUpdate()[/ICODE] to execute the update.

Member Avatar for Ezzaral
0
103
Member Avatar for bibiki

Your touch method is a void return [CODE]public void touch(Kutia[][] k)[/CODE]You can't assign that to your 'c' variable.

Member Avatar for bibiki
0
200
Member Avatar for eoop.org
Member Avatar for vegaseat

We are really acquiring a wealth of knowledge about which movie stars are preferred by SEO spammers.

Member Avatar for JamieLynnSEO
0
1K
Member Avatar for RickettRackett

Another option would be to use a Map, such as HashMap, with the direction as the key and the count as the value. Or an array could be used very easily if the Direction constants are int values 0-4.

Member Avatar for RickettRackett
0
188
Member Avatar for GooeyG

You commented out the statement that actually built the prepared statement[CODE]//prepareState = connection.prepareStatement(sqlInsert);[/CODE]

Member Avatar for masijade
0
272
Member Avatar for Poopster01
Member Avatar for Poopster01
0
335
Member Avatar for tonskiwakaka

Let's take a look at one of the rules under the Keep It Organized section, shall we? [B] - Do provide evidence of having done some work yourself if posting questions from schoolwork assignments[/B] How about some code or even just a specific question that indicates you made even the …

Member Avatar for Ezzaral
0
30
Member Avatar for rogba

Well, bunny09 (that's your name on Cramster, right?), perhaps you should make an attempt to write your own code for your homework assignment and then you would know what the program would or would not do. Edit: Hmm, no apparently 'bunny09' is just the user who posted this question in …

Member Avatar for Ezzaral
-1
613
Member Avatar for Phil++

mKorbel, note that Phil++ was using Applet, not JApplet. Your advice is correct for JApplet, but in Applet paint() is the appropriate method to override.

Member Avatar for Ezzaral
0
279
Member Avatar for hairpull

You could also initialize the variable to your default before the switch.[CODE]String numWordString="";[/CODE]

Member Avatar for jon.kiparsky
0
128
Member Avatar for cybrix101

[B]>I'm still not sure why my original idea didn't work as all outputs showed that it should have been correct! [/B] What you originally posted does look as though it should work, but you haven't provided enough of the rest of your code to determine the problem. As others already …

Member Avatar for Ezzaral
0
150
Member Avatar for WHI

You need to delete the characters from your StringBuilder before your second loop or create a new one. You could also consider deleting just the last 20 characters and doing away with the second loop altogether.

Member Avatar for Ezzaral
0
111
Member Avatar for Puertorro

Of course it isn't. Let's say I put in "2357" as my input number. What are you expecting this statement to do?[CODE]System.out.print(convertIntegerToWords(2357) + convertIntegerToWords(2357) + convertIntegerToWords(2357));[/CODE]I don't see that number in your switch statement. Do you? And why make the exact same method call exactly three times?

Member Avatar for mKorbel
0
356
Member Avatar for Phil++

You need to set the color and draw each letter individually as you loop through them. You'll have to increment the position on the screen as you draw as well. Note that you can specify the offset and length to draw in the method call, so your loop variable can …

Member Avatar for mKorbel
0
122
Member Avatar for raniel1314

Splitting to new thread. Raniel, please do not hijack old threads when posting a question.

Member Avatar for AndreRet
0
250
Member Avatar for aditi mishra

You need to be a bit more specific with your question. As it is, this doesn't make any sense.

Member Avatar for qazplm114477
0
86
Member Avatar for java'adik

Your question is not clear. Perhaps you can explain a little more.

Member Avatar for Taywin
0
58
Member Avatar for tasty

@tasty: Please post your code and specific questions about the parts you are having trouble with. @saruba: The point of the forums is to help people fix their code by themselves - not write it for them.

Member Avatar for tasty
0
121
Member Avatar for nonshatter

[B]> Vb code for parsing HTML Table[/B] This is the PHP forum. Posting your VB code isn't very relevant in this thread.

Member Avatar for Ezzaral
0
210
Member Avatar for smithy_2009
Member Avatar for MFal
Member Avatar for derek123

His assignment, which he posted [URL="http://www.daniweb.com/forums/thread350314.html"]here[/URL], states that he is suppose to use the given Taylor series expansion.

Member Avatar for Ezzaral
0
149
Member Avatar for derek123

Help implies you making an effort and receiving assistance. I don't see that here. You just pasted the assignment. Post code. Ask specific questions. If you are looking for someone to write this for you to hand in, look elsewhere.

Member Avatar for Ezzaral
-1
602
Member Avatar for moone009

Did you RTFM? [url]http://msdn.microsoft.com/en-us/library/ms186862.aspx[/url] Looks pretty straightforward[CODE]update [tablename] set [fieldname] = replace([fieldname],'.','')[/CODE]Probably want to verify those results with a select before you run the update though.

Member Avatar for moone009
0
80
Member Avatar for shainjetly
Member Avatar for arshalan

Google was far from the first search engine. Look up Archie, Gopher, WebCrawler, Lycos, etc. There were many before Google came along and took the crown.

Member Avatar for Momerath
-3
412
Member Avatar for ilikepaste
Member Avatar for arshalan
Member Avatar for Progr4mmer
Re: JDK

[B]>is there any way for me to update without re downloading[/B] Nope. [B]>is there and reason to either? [/B] Bug fixes and security updates.

Member Avatar for Progr4mmer
0
151
Member Avatar for luisator
Member Avatar for Ezzaral
0
170
Member Avatar for cacolukia

No, the problem is that what you have written is not valid Java syntax. You cannot place commas in those expressions. What are you trying to do with those statements?

Member Avatar for cacolukia
0
175
Member Avatar for brynFlew

That will remove [I]all[/I] zeros though, regardless of position. Is that what you intend? [iCODE]replaceAll("^0*", "")[/iCODE] will remove just the leading ones.

Member Avatar for Ezzaral
1
140
Member Avatar for CMAUK

It looks to me like you could just loop until you have read the line [CODE]Date,Withdraw/Deposit,Amount,Current Balance[/CODE]and then set a boolean flag that all lines after that one are kept.

Member Avatar for Ezzaral
0
465

The End.