5,031 Posted Topics
Re: I think you need to read all posts not just the last one :) [QUOTE=darkagn;438308]What is the exact error that you are getting? Do you get it when you try to compile or when you run it?[/QUOTE] [QUOTE=blanklogo;438231] I am currently using netbeans and the line that says "public class … | |
Re: You have two curly bracklets on start of switch statement and only one on closing [code] switch (sCode){ { case 'c': case 'C': [/code] so delete one. However once this done there is another 13 error messages which you need to sort. GL | |
Re: You should check answer to your first post where I provided a link to other post with same problem as yours. Based on that you would get some ideas what to do with it | |
Re: tech74, if you wished to leave a feedback about the way some responses are handled here you would better do it in Coffe House ==> DaniWeb Community Feedback. There is realy no point open an old post and arguing about it. So please, if you have anything to say regarding … | |
![]() | Re: Can you please post whole code and maybe text file that you try to read as given snipplet doesn't show any problems. Reset button is as any other button in Java it is the functionality that you assign to it that matters. Be more specific of what you expect from … |
Re: Do not expect anybody give you such code for free, we may guide you in developing such application but major work is up to you PS: It will be very nice if you make up your mind which programming language you wish to use, plus read rules about posting, specialy … | |
Re: [QUOTE=RamyMahrous;439036]remove the double quotes UPDATE Customers SET stud_name='+stdName+' WHERE stud_ID='45698'[/QUOTE] You can do this only when you wish replace current value of stud_name with new value which will be [B]stdName[/B]. However in this case stdName represent variable and not value so ivatanako approach is correct. ivatanako can please post rest … | |
Re: You may want to use Fraps, which is utility for games demo recording, but I expect you can record what ever goes on desktop. Not shure if it record sound but, you can add this in flash [url]http://www.fraps.com/[/url] | |
Re: I think same problem (coursework) was worked out in this post [URL="http://www.daniweb.com/forums/thread88762.html"]Inventory program part 5[/URL] | |
Re: Are you sure that you are on appropriate level from which give path is leading to mentioned files, or you in same directory as these files? | |
Re: It is exactly what is says [QUOTE]cannot find symbol : method [B]set[/B]TotalPurchase(int)[/QUOTE] You have no set methods only get. So create set which will store your data in your Customer class | |
Re: I would say I love you Dani, but then my girlfriend will beat s**t out of me, so I say thank you ;) | |
Re: Check this website [URL="http://64.18.163.122/rgagnon/howto.html"]Real's How To[/URL], there is nice tutorial in Java section for you to find | |
Re: You been just little messy with bracklets, I think you want that code something like this [code] import java.io.*; import java.text.DecimalFormat; import java.text.*; class MortgageProgramCornwell { public static void main(String[] args) throws IOException { //constants int principal = 200000; float fraction = 0; int months = -360; double monthlypayment = … | |
Re: Just yeasterday I pointed another member toward this [URL="http://java.sun.com/xml/tutorial_intro.html"]tutorial[/URL] | |
Re: [QUOTE=ksaxena;432143]Tomcat - C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\shop\org\apache\jsp\JSP [/QUOTE] You should never mess up with Catalina directory on life server or you may pay dearly. Same apply to your local pc instalation... | |
Re: It is bad practice to connect to DB from JSP. JSP is not supposed to do so, it is Servlet what you should use. JSP should have minimum of Java coding inside it... | |
Re: Removing is the easy part you have to think about how you gone search/locate this unwanted part of text. What sort of criteria you will use? How you will handle your text, where you will get it from (user/file)? | |
Re: [list] [*] read the file line by line [*] split the read line on empty character [*] strings received this way store in your arrays [/list] | |
Re: is this in general using pc for every day or only with a game? | |
Re: Serialilzation is solution to your question. Try to read this tutorial from[URL="http://www.deitel.com/articles/java_tutorials/20050923/IntroductionToObjectSerialization.html"] Java How to Program[/URL] | |
Re: Small example how to write into file [code] import java.io.*; class FileWrite { public static void main(String args[]) { try{ // Create file FileWriter fstream = new FileWriter("out.txt"); BufferedWriter out = new BufferedWriter(fstream); out.write("Hello Java"); //Close the output stream out.close(); }catch (Exception e){//Catch exception if any System.err.println("Error: " + e.getMessage()); … | |
Re: Well there is much more what Curtis can do... For start he should check on unclosed bracklets for example try/catch/finaly, re-think position of [I]public TestScores(int testScore) [/I] etc | |
Re: [QUOTE=ryy705;429844]So what you are saying is that I can simply include the database program with the rest of the software and the database program does not have to be installed on the computer as a seperate program. [/QUOTE] You need to stright-up your facts... Lets put it this way. Your … | |
Re: I think that File method [URL="http://java.sun.com/javase/6/docs/api/java/io/File.html#listRoots()"]listRoots()[/URL] is your best shot. However I have no idea how this work if you have dual booting system in combinanion windows and unix | |
Re: For learning materials, google is your friend. This is what I got with [URL="http://www.google.co.uk/search?hl=en&q=weblogic+tutorial&btnG=Google+Search&meta="]simple quary[/URL] and already first link is interesting | |
Re: Your slide show is done in JavaScript [QUOTE]<SCRIPT LANGUAGE="JavaScript"> <!-- Begin //3-way slideshow- by Suzanne Arnold[/QUOTE] and this has nothing to do with Java THIS POST WILL BE MOVE TO THE JavaScript section | |
Re: As far I know war does not contain DB. This have to be done separatly | |
Re: You missing main method. So either implement main method in your code or create another class with main method that will make use of yout Test6 class | |
Re: Try to read this tutorial from Sun website [URL="http://java.sun.com/xml/tutorial_intro.html"]Working with XML[/URL]. Reading content of JTextArea will be no problem to you, XML is what you need to work on... | |
Re: No need to know another language you can start with Java. You need to find a good book (not something out of date) or some course, plus download Java. They may sugest some IDE (Integrated Data Environment - application to write your code which helps with code compiling, debuging and … | |
Re: Have you imported [I][COLOR="Red"]java.util.regex.Pattern[/COLOR][/I] for Pattern and [I][COLOR="Red"]java.util.regex.Matcher[/COLOR][/I] for Matcher or at least imported [I][COLOR="Red"]java.util.regex.*[/COLOR][/I]? Defenetly not... | |
Re: I do not know what your teacher gave it to you and if you already covered Exceptions, but that what you get when you use BufferedReader [URL="http://java.sun.com/javase/6/docs/api/java/io/BufferedReader.html#readLine()"]getLine()[/URL]. Check this [URL="http://www.hostitwise.com/java/java_io.html"]tutorial[/URL] and you should be able to figure it out what to do with it. Main difference between yours code and … | |
Re: What a bad idea to show here website which provide illegal download and even show us what you been downloading lastly "[B]Mobb_Deep_ft_50_Cent_&_Nate_Dogg..rar[/B]". Please do not do anything like this in the future, we do not like to see things like these over here. To your question, it is possible but … | |
Re: Same mistake in both cases [list] [*] you store user input into [B]Department[/B] but compared variable is [B]dept[/B], I think you forgot to parse String [I]Department[/I] to integer [I]dept[/I] so whole time you run check on null value of dept [INLINECODE]int dept=0;[/INLINECODE] [*] your last attempt iCez actually work once … | |
Re: Once you read the line, look for position of empty space in your string from beginning and then substring it. String method [I]charAt(num)[/I] and [I]substring(int beginIndex, int endIndex)[/I] will help you. Second option is to use Serialization because you know how the text is formated (meaning text followed by number … | |
Re: [QUOTE=SapnaG;430460]Hi, You first make sure that all the paths are set correctly. most important all the jar files for Jsp and servlet should be at right place that will make you JSP compiler to work.[/QUOTE] [B] I think that answer was already given, don't you???[/B] [QUOTE=~s.o.s~;412978]This problem occurs when at … | |
Re: I do not know any free aviable e-books regarding this subject. For links it is always good to start from Sun Java tutorials site [URL="http://java.sun.com/docs/books/tutorial/jdbc/index.html"]JDBC Database Access[/URL] also you should look at [URL="http://java.sun.com/docs/books/tutorial/javabeans/index.html"]Java Beans[/URL] if you do not already know them, this [URL="http://www.jdbc-tutorial.com/"]site[/URL] has also nice tutorials and thereare many … | |
Re: All depends on if that it is on local pc or provided with ftp access from web provider, but essencialy approach is similar. For local instalation, locate your Tomcat instalation directory, go to [I]webapps[/I] folder, then open your project to which you wish to add images for example [I]MyProject[/I] and … | |
Re: if you want to pay only $50, ebay is your only chance... | |
Re: You can find this tutorial helpful [url]http://java.sun.com/javaee/5/docs/tutorial/doc/[/url] | |
Re: In the future please avoid double posting and insted just update post which you already created. Question is, do you have stand-alone instalation of Tomcat or you using the one provided with NetBeans? If you have Tomcat instalation from NetBeans I can't help you. However if you have stand-alone instalation … | |
Re: You can find this website helpfull [URL="http://64.18.163.122/rgagnon/howto.html"]http://64.18.163.122/rgagnon/howto.html[/URL]. Select Java section and go to date and Time | |
Re: [URL="http://www.amazon.com/exec/obidos/ASIN/0130895601/deitelassociatin"]Advanced Java 2 Platform: How to Program[/URL] Some info about book can be find over [URL="http://www.deitel.com/Books/Java/AdvancedJava2PlatformHowtoProgram1e/tabid/1929/Default.aspx"]here[/URL] | |
Re: No, you have to first call currently selected item [INLINECODE]String selectedOption = (String) jComboBoxMonth.getSelectedItem()[/INLINECODE] and then you can compare it as you did it [INLINECODE]if (selectedOption.equals("Month")[/INLINECODE] | |
| |
Just seen that post count may not work properly. For example this guy [URL="http://www.daniweb.com/forums/member172816.html"]http://www.daniweb.com/forums/member172816.html[/URL], it shows that he made 2 posts but when you search for them it actualy find only one(at the moment!!! As even this I request to delete so may not exists when you will look for … | |
Re: You need working instalation of Java, either J2SE 5.0 ([URL="http://java.sun.com/javase/downloads/index_jdk5.jsp"]download here[/URL], get JDK 5.0 Update 9 with Java EE and it will update it self to Update 12) or use Java SE 6 ([URL="http://java.sun.com/javase/downloads/index.jsp"]download here[/URL], get JDK 6 Update 2). Do not forget to set up [URL="http://java.sun.com/j2se/1.5.0/install-windows.html"]PATH[/URL] and [URL="http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html"]CLASSPATH[/URL], here … | |
Re: Hmmmmm interesting, I would never say that main method bellong to JSP... ...or is this new programming approach? |
The End.