3,927 Posted Topics
Re: [B]> am helpless[/B] Then you're failing. Help is offered here to those who show effort. This is not a homework completion service. | |
Re: @nezachem: start() is an Applet life cycle method though. I believe that's why he has that code in start(). | |
Re: 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 … | |
| |
Re: [B]> anyone have Tutorials for this.[/B] Oracle does. Look them up. | |
Re: [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. | |
Re: Perhaps you misunderstood what Jon posted? I can't even understand what you're attempting to say here. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
Re: It says more than that. The stack traces will indicate the exact error and the line it occurs on. Read them carefully. | |
Re: 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. | |
Re: Did you import Highscore? Where is the Highscore class coming from. What "api" you are referring to? | |
Re: 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 … | |
Re: [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. | |
Re: Your touch method is a void return [CODE]public void touch(Kutia[][] k)[/CODE]You can't assign that to your 'c' variable. | |
Re: We are really acquiring a wealth of knowledge about which movie stars are preferred by SEO spammers. | |
Re: 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. | |
Re: You commented out the statement that actually built the prepared statement[CODE]//prepareState = connection.prepareStatement(sqlInsert);[/CODE] | |
Re: Guess what happens here when 'LN1' has less than 7 characters?[CODE]LN1.substring(0,7)[/CODE] | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: You could also initialize the variable to your default before the switch.[CODE]String numWordString="";[/CODE] | |
Re: [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 … | |
Re: 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. | |
Re: 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? | |
Re: 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 … | |
Re: Splitting to new thread. Raniel, please do not hijack old threads when posting a question. | |
Re: You need to be a bit more specific with your question. As it is, this doesn't make any sense. | |
Re: Your question is not clear. Perhaps you can explain a little more. | |
Re: @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. | |
Re: [B]> Vb code for parsing HTML Table[/B] This is the PHP forum. Posting your VB code isn't very relevant in this thread. | |
Re: This thread is from 2005. I assume the OP has moved on. Closing. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: You need an explicit cast to int[CODE]int b = (int)a;[/CODE] | |
Re: [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. | |
Re: I doubt the OP is going to return after six years to post his classes. ;) | |
Re: 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? | |
Re: 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. | |
Re: 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. |
The End.