5,031 Posted Topics

Member Avatar for blanklogo

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 …

Member Avatar for johnsene
0
154
Member Avatar for champagne

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

Member Avatar for orko
0
93
Member Avatar for Catgirl

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

Member Avatar for no1zson
0
88
Member Avatar for vladdy19
Member Avatar for militant880

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 …

Member Avatar for no1zson
0
166
Member Avatar for sakura_fujin

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 …

Member Avatar for Ezzaral
0
147
Member Avatar for alapick

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 …

Member Avatar for orko
0
590
Member Avatar for ivatanako

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

Member Avatar for jwenting
0
722
Member Avatar for ytregnn

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]

Member Avatar for hussulinux
0
121
Member Avatar for Catgirl

I think same problem (coursework) was worked out in this post [URL="http://www.daniweb.com/forums/thread88762.html"]Inventory program part 5[/URL]

Member Avatar for peter_budo
0
95
Member Avatar for ryy705

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?

Member Avatar for ryy705
0
113
Member Avatar for java_starter

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

Member Avatar for jwenting
0
166
Member Avatar for challa.kamal

I would say I love you Dani, but then my girlfriend will beat s**t out of me, so I say thank you ;)

Member Avatar for jwenting
0
268
Member Avatar for CsE2007

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

Member Avatar for orko
0
90
Member Avatar for ajcornwell

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

Member Avatar for orko
0
147
Member Avatar for sarath.koiloth

Just yeasterday I pointed another member toward this [URL="http://java.sun.com/xml/tutorial_intro.html"]tutorial[/URL]

Member Avatar for sarath.koiloth
0
143
Member Avatar for bdichiara

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

Member Avatar for ksaxena
0
119
Member Avatar for MonkeyGarage

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

Member Avatar for MonkeyGarage
0
115
Member Avatar for abar_sow

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

Member Avatar for Ezzaral
0
105
Member Avatar for KimJack

[list] [*] read the file line by line [*] split the read line on empty character [*] strings received this way store in your arrays [/list]

Member Avatar for KimJack
0
121
Member Avatar for fuglzang
Member Avatar for fuglzang
0
81
Member Avatar for KimJack

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]

Member Avatar for ~s.o.s~
0
122
Member Avatar for KimJack

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()); …

Member Avatar for peter_budo
0
190
Member Avatar for CurtisBridges

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

Member Avatar for peter_budo
0
441
Member Avatar for ryy705

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

Member Avatar for ryy705
0
197
Member Avatar for claudiu_is

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

Member Avatar for Ezzaral
0
127
Member Avatar for jtechie

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

Member Avatar for jwenting
0
72
Member Avatar for ttamilvanan81

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

Member Avatar for MidiMagic
0
142
Member Avatar for staneja
Member Avatar for dinezhr
0
121
Member Avatar for iCez

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

Member Avatar for iCez
0
94
Member Avatar for simoneffe

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

Member Avatar for peter_budo
0
38
Member Avatar for osirus0830

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 …

Member Avatar for peter_budo
0
185
Member Avatar for anil1219

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

Member Avatar for anil1219
0
105
Member Avatar for rapperhuj

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 …

Member Avatar for saifjob40
0
215
Member Avatar for quadiator

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 …

Member Avatar for quadiator
0
123
Member Avatar for iCez

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 …

Member Avatar for iCez
0
135
Member Avatar for KimJack

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 …

Member Avatar for peter_budo
0
108
Member Avatar for muskan

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

Member Avatar for peter_budo
0
177
Member Avatar for Renzokouken_22

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 …

Member Avatar for peter_budo
0
97
Member Avatar for Piuskutty

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 …

Member Avatar for Piuskutty
0
117
Member Avatar for brennan
Member Avatar for saifjob40

You can find this tutorial helpful [url]http://java.sun.com/javaee/5/docs/tutorial/doc/[/url]

Member Avatar for peter_budo
0
119
Member Avatar for ceyesuma

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 …

Member Avatar for ceyesuma
0
97
Member Avatar for Megha_Patni

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

Member Avatar for ~s.o.s~
0
72
Member Avatar for gauri_me_i

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

Member Avatar for peter_budo
0
66
Member Avatar for pmhayden

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]

Member Avatar for peter_budo
0
90
Member Avatar for Pyare007
Member Avatar for peter_budo

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 …

Member Avatar for happygeek
0
80
Member Avatar for ceyesuma

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 …

Member Avatar for peter_budo
0
134
Member Avatar for apontutul

Hmmmmm interesting, I would never say that main method bellong to JSP... ...or is this new programming approach?

Member Avatar for peter_budo
0
207

The End.