736 Posted Topics
Re: According to me the return type of insert should be Node<T> and not only <T>, cause thats what is the type of your "next" member of the Node class. And next you you post code please make it a point to wrap it inside [noparse][code=java] and [/code][/noparse] tags. | |
Re: Maybe [URL="http://www.onjava.com/pub/a/onjava/2003/05/14/qtj_reintro.html"]this[/URL] article on [URL="http://developer.apple.com/quicktime/qtjava/"]QuickTime for Java API[/URL] might help. | |
Re: Also just a suggestion you can drop the extra parenthesis ( the "(" and ")") around "+dollar+". | |
Re: If you are learning the concept of Binary Search Trees, Heap etc, it would be better option that you implement them by hand rather than using Collections. That way you would understand the concept better and also improve your logical thinking ability and the ability of transferring logic to code. … | |
Re: Actually this is an SQL Question rather than a Java question, If you want to delete a row from a table, you use the "DELETE" statement. The following is an illustration, Consider we have a table "User" with columns "UserName" and "Age", Now if I want to delete all records … | |
Re: "You are a Spiritual Self-Improving Money Manager" Now I know why I hate to spend anything :P | |
Re: First thing is you will need to install JDK from Sun, you can get that [URL="http://java.sun.com/javase/downloads/index.jsp"]here[/URL]. But most probably I assume you already have installed it. Next to compile from your command line on windows, using the "javac" command you will need to update the PATH variable of your Windows … | |
Re: As masijade mentioned set your PATH variable and you can check [URL="http://www.daniweb.com/forums/thread168656.html"]this thread[/URL] for more details on that. BTW excellent description of your problem, you must really have read all the forum rules and the sticky to make such an excellent post. :P :D | |
Re: You will need to use a nested for loop if you want to print fixed number of characters horizontally also. Following is how you loop would look like (note it is just for an illustration, you may have to modify it further to get what you exactly want) :- [code=java] … | |
Re: @hosam I agree with verruckt24, the first two links definitely do not touch the case being considered. | |
Re: I would suggest putting the rest of your code in the [icode]while(end==false)[/icode] in the else part of this if condition :- [code=java] if(empName.toLower().equals("stop")) { end = true; [/code] That would make it skip the rest of the loop Or you could also just put a "break" statement inside the same … | |
Re: Specifying what your game is written in or what kind of classes you are using would at least give us a clue on what to suggest. Here are some useful links I got when I googled for Double buffering :- [url]http://java.sun.com/docs/books/tutorial/extra/fullscreen/doublebuf.html[/url] [url]http://gpwiki.org/index.php/Java:Tutorials:Double_Buffering[/url] [url]http://www.ecst.csuchico.edu/~amk/classes/csciOOP/double-buffering.html[/url] Also if are interested is making games … | |
Re: Did you create your JFrame using the NetBeans designer ??If not then the design view would be useless to your current project. On the other hand if you did do your designing in NetBeans, check if a corresponding ".form" file exists for your JFrame,.etc. Chances are that could have been … | |
Re: This question is the first of its type I have encountered, a little bit of googling revealed this work around:- [url]http://www.swingwiki.org/howto:irregular_frame_shape[/url] [url]http://www.onjava.com/pub/a/onjava/excerpt/swinghks_hack41/index.html[/url] [url]http://today.java.net/pub/a/today/2008/03/18/translucent-and-shaped-swing-windows.html[/url] | |
Re: I do not have any sample but code, but do have some suggestions for mixing Java + AJAX:- [URL="http://code.google.com/webtoolkit/"]GWT[/URL] is a great framework for developing Ajax based applications in Pure Java. [URL="http://jmaki.com/"]jMaki[/URL] is another AJAX framework which can be used with Java on the Server side. And I would suggest … | |
Re: [QUOTE=Alishaikh;508261]I solved it my self and no one here helped(or even replied) so I'm NEVER coming here back EVER again.[/QUOTE] So finally you've come back. | |
Re: Heres another one a bit more oriented towards the technical side. [url]http://java.sun.com/docs/books/tutorial/javabeans/index.html[/url] | |
Re: Any pointers as to what is exactly happening in your application and what it is supposed to do or what errors you are getting would be nice. Now if you are referring to this :- [code=java] while (input != "x") { [/code] Then I wish to inform you that in … | |
Re: [B]java.lang.ArrayIndexOutOfBoundsException: -1[/B] Although I haven't gone through your entire code and neither followed up on the post, The above error strongly suggests that you are performing a Pop operation on an empty stack "stackArray2" (with Head as "evaltop") | |
Re: May be [URL="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html"]this link[/URL] would help. | |
Re: Insert all the Strings that the user enters in to the args[] string array, since this array is being passed to each successive call of main, So you will have a list of all entered keywords in this array. In order to check for repetitions just check if the entered … | |
Re: Well it depends she could be using a Priority Queue, in which members are organized in the ascending or descending order. Also priority queue implementations may vary, some may do the selection of element to be removed at deletion time while others may do the sorting at insertion time so … | |
Re: [QUOTE=peter_budo;783946]You two do not really know where to stop teasing. Why do you constantly mock all new comers? Don't you think that one person saying "No, we will not do it for.." is clear message that if other side does not show some effort will get nothing out here? verruckt24 … | |
Re: May be this javdocs link will clear up all the possible ways to get Strings :- [url]http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html[/url] | |
Re: The reason they are not working is because you are putting your "if" checks before you have even read them from the console. | |
Re: [URL="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JEditorPane.html"]JEditorPane[/URL] can be used to view HTML Content in Swing, you can also check out the example [URL="http://www.java2s.com/Code/Java/Swing-JFC/ShowHTMLDocument.htm"]here[/URL]. | |
Re: Well honestly speaking I found Swing to be quite powerful, but if you still want to look at some third party toolkit, you could take a look at [URL="http://www.eclipse.org/swt/"]SWT[/URL] (The Standard Widget Toolkit.) | |
Re: [QUOTE=niek_e;780504]Why was that banned? I think you Americans like banning just for the fun of it :) In the Netherlands, this doesn't come even close to banning. You can say/show all the stuff you want on the T.V. (the f-word won't get beeped and Janet Jackson wouls still have a … | |
Re: First we need what is in your "qry" variable. Also if you want is use features like [icode]rs.last()[/icode] etc, then I recommend you use a scroll insensitive resultset. | |
Re: Try:- [url]www.java2s.com[/url] It has sample code for most of java API classes. You would have stumbled across it if you would have gone through the sticky at the top. | |
Re: My suggestion would be you keep an Integer (say "counter") array with the exact size as the total number of names you read from the file. And when you select any name at random from that String array (in which you have your names stored originally), just increment the integer … | |
Re: Well I do not know if anyone else mentioned this but the [URL="http://www.daniweb.com/forums/profile.php?do=editprofile"]Edit Profile[/URL] page looks pretty awful at 1024x768 resolution. I got some snapshots attached. | |
Re: What is the format of your text file ??? And by format mean how will the interest rates or whatever be arranged in the text file. | |
Re: If you are using Eclipse then thats I guess the most easy way to make a JAR. Also while making a JAR file in Eclipse you get an option to select the Main Class in the final step. Have you done that ??? Also try running your JAR from the … | |
Re: [QUOTE=enim213]f is there any possibility to separate column data in different columns using php code..[/QUOTE] Would you care to elaborate on that with an example which illustrates what you exactly want ??? | |
Re: Do not use the jdbc:odbc bridge for real world systems where performance and features matter, use a type 4 driver like[URL="http://jtds.sourceforge.net/"] jTDS[/URL] instead. | |
Re: Take a look at the [URL="http://jasperforge.org/plugins/project/project_home.php?group_id=102"]Jasper Reports API[/URL]. | |
Re: This is a Java Forum, but I guess you are too ignorant to notice that. There is also a VB forum on this site, but since you are too lazy to even see where it is, [URL="http://www.daniweb.com/forums/forum4.html"]here[/URL] is its link. | |
Re: Would you mind helping us help you by helping yourself to [URL="http://www.daniweb.com/forums/announcement9-3.html"]this announcement[/URL] at the top of the forum regarding the use of code tags and Oh Yes !!! in the mean time also describe what is actually going wrong. | |
Re: As sillyboy mentioned, this is not a JSP issue, the "&heart;" symbol is not supported by the Latin1 character set (ISO-8859-1) which most probably by default is the character encoding for your page. So set change your page encoding to Unicode if you want it to be displayed. [URL="http://www.alanwood.net/demos/symbol.html"] Here[/URL] … | |
Re: The above code requires that your system have an Echo-Server installed on your system. Echo-Servers normally listen on port "7" and give back whatever you write on their socket. If you are on any Microsoft OS chances are that no such server exists on your system. You can also test … | |
Re: Do not perform database manipulation directly from within scriplets, [URL="http://www.daniweb.com/forums/thread141776.html"]here[/URL] is a tutorial how you should actually be going about performing database operations in web applications. | |
Re: [QUOTE=peter_budo;778028]Neither we can detect any problem as you failed to provide your code...[/QUOTE] What kind of moderator are you ??? You can easily use your crystal ball to pin point the problem :P | |
| |
Re: Here is [URL="http://java.sun.com/docs/books/tutorial/java/concepts/"]a tutorial[/URL] on Object Oriented Programming with Java, Should help you get started with how to model your classes. | |
Re: [QUOTE=BestJewSinceJC;777617]Look at the Java Sun tutorial on ActionEvents and ActionListener. They have all the examples you need as well. I was able to learn all about them by myself, and so will you, if you read. If you have any specific questions, ask those...[/QUOTE] I am pretty sure the thread … | |
Re: You need to know at least something about the [URL="http://www.jmarshall.com/easy/http/"]HTTP[/URL] protocol before understanding that piece of code. But what comes to my mind is why do you want to know what that piece of code does, are you involved in plagiarism .... trying to use someone else's code and showing … | |
Re: Use HTTP POST to get your file to the Web Server and the receiving servlet can then forward it to the next modules for the necessary processing. | |
Re: Well I have a slightly different opinion about this, according to be its not the language but the methodology you use to program which makes more of an impact. Adjusting to the syntax of a language and the features provided / not provided by it will of course cause problems, … |
The End.