Search Results

Showing results 1 to 40 of 531
Search took 0.03 seconds.
Search: Posts Made By: stephen84s ; Forum: Java and child forums
Forum: Java Sep 14th, 2009
Replies: 1
Views: 493
Posted By stephen84s
The reason why you are getting the error on "totalInterestPaid" is cause you have declared it inside the while block, due to which it is not visible to any code outside that block and hence you are...
Forum: Java Sep 14th, 2009
Replies: 2
Views: 169
Posted By stephen84s
IMHO you cant make an OS independent executable (.exe) files, cause these files contain instructions native to the OS and your system architecture, for example an executable made for an 64 bit...
Forum: Java Aug 29th, 2009
Replies: 5
Views: 85,133
Posted By stephen84s
@chackboom

Am pretty sure the O.P. must have found a solution to it long long ago, please check the dates before posting on such fossilized threads.
Forum: Java Aug 29th, 2009
Replies: 9
Views: 597
Posted By stephen84s
Well I can see how this can be fixed, but I need to know your motive in writing lines 4 to 17, are they for testing your code like in a main as VernonDozier says??
Also why does your sum() method...
Forum: Java Aug 29th, 2009
Replies: 3
Views: 210
Posted By stephen84s
@ O.P.

Recommend do it the hard way as Peter suggested cause that way you will learn more about Java. Don't straight away jump and use NetBeans, although its a good IDE its unnecessarily bloated,...
Forum: Java Aug 24th, 2009
Replies: 1
Views: 181
Posted By stephen84s
You know a little bit googling wouldn't hurt you,
Heres one resource which I found via google:-

http://onjava.com/pub/a/onjava/2001/03/15/tomcat.html

You will find a ton of other resources if...
Forum: Java Aug 21st, 2009
Replies: 2
Views: 226
Posted By stephen84s
This is just plain old Java syntax error, the operator "+" in Java is used to concatenate String objects, remove the extra plus after "a" in all the three statements and you should be good to go,
...
Forum: Java Aug 20th, 2009
Replies: 2
Views: 178
Posted By stephen84s
Ok thank you for informing us about your need, hope you succeed in writing it.
Forum: Java Aug 20th, 2009
Replies: 2
Views: 437
Posted By stephen84s
How about deleting the entire file and then creating a new file with the same name at the same location !!!
Forum: Java Aug 20th, 2009
Replies: 2
Views: 225
Posted By stephen84s
Although you have mentioned that you are working on a web application, you have not even given us the slightest hint as to what are you using in that web application, is it JSP, Servlets etc.

Yes...
Forum: Java Aug 20th, 2009
Replies: 4
Views: 331
Posted By stephen84s
We would but apparently what effort did you put into doing that ? Heck it seems you dint even put the effort to read this announcement (http://www.daniweb.com/forums/announcement9-3.html) nor this...
Forum: Java Jul 28th, 2009
Replies: 2
Views: 221
Posted By stephen84s
Can you please post the complete error you are getting or the complete query you are using, I cant seem to trace it in your code.

Now making a blind guess here, it appears your SQL Statement...
Forum: Java Jul 25th, 2009
Replies: 3
Views: 633
Posted By stephen84s
Now I haven't gone through your code, but if you are looking for a data structure which can hold a list and gives you the facility to delete any element at random I suggest you take a look at the...
Forum: Java Jul 25th, 2009
Replies: 6
Solved: Javac Problem
Views: 361
Posted By stephen84s
@ryy705
Now when I run javac -help I get the following message:-


Although I use the Eclipse Java compiler, but then too the usage should be the same even with the Sun JDK.
Now if you notice...
Forum: Java Jul 6th, 2009
Replies: 4
Views: 440
Posted By stephen84s
The following link apparently seems to be tailor made for the topic of this thread :- Packaging and Deploying Desktop Java Applications (http://www.netbeans.org/kb/articles/javase-deploy.html)
Forum: Java Jun 16th, 2009
Replies: 15
Views: 1,206
Posted By stephen84s
The problem is not of PATH variables or the Oracle driver Jar not found in classpath, It is quite simply you are not invoking the program correctly.

When you are running any Java program, you give...
Forum: Java Jun 9th, 2009
Replies: 9
Views: 335
Posted By stephen84s
Hi James, you have to use the noparse tags around the code tags like this:-
Forum: Java Jun 9th, 2009
Replies: 7
Views: 1,066
Posted By stephen84s
I agree with VernonDozier, your code compiled and ran OK,
You should not be getting this problem unless and until you are using a Java compiler prior to release 1.2 (i.e a pre Java2 compiler cause...
Forum: Java Jun 9th, 2009
Replies: 11
Views: 524
Posted By stephen84s
No problems, with the line numbers, I appreciate the fact that even though new you even care to use code tags.
The line numbers will come up if you wrap you code inside and tags.

Anyways the...
Forum: Java Jun 9th, 2009
Replies: 9
Views: 375
Posted By stephen84s
An exam for which no doubt you would have been given a decent time to prepare ?
Sorry "_Rosie_" but thats an all the more bigger reason why we shouldnt be helping you, cause it would be cheating. I...
Forum: Java Jun 9th, 2009
Replies: 11
Views: 524
Posted By stephen84s
Can you point out which is the line specified here :-


at MyPackage.MouseOverExample$Glyph.<init>(MouseOverExample.java:109)
Forum: Java Jun 9th, 2009
Replies: 9
Views: 375
Posted By stephen84s
Nope no ones going to write that code for you, but we will not mind helping you write it.

Here are some tutorials :-

Taking user input from console on Java[1...
Forum: Java Jun 9th, 2009
Replies: 9
Views: 335
Posted By stephen84s
@lloydsbackyard

I dont know what you are talking about. When I ran your code, it worked perfectly:-


stephen@xxx:~/Development/java> javac bonus.java
stephen@xxx:~/Development/java> java...
Forum: Java May 30th, 2009
Replies: 2
Views: 256
Posted By stephen84s
Or you could have done the same thing that adatapost did here (http://lmgtfy.com/?q=java+portable&l=1) and have found out the answer more faster.
Forum: Java May 30th, 2009
Replies: 4
Views: 336
Posted By stephen84s
Well just a quick Search of your code revealed that you have never created an Object of ExtendDVD so I guess its logical that nothing from it would be printed.
Forum: Java May 14th, 2009
Replies: 5
Views: 2,827
Posted By stephen84s
And I am sure the guy has already solved his problem 3 years ago, Talk about speedy replies !!!!
Forum: Java May 11th, 2009
Replies: 1
Views: 419
Posted By stephen84s
I do not know how to execute a macro, but what you could do is Query your MS-Access database and write the values from the recordset into a file CSV format (which can be opened in Excel) or...
Forum: Java May 2nd, 2009
Replies: 9
Views: 1,046
Posted By stephen84s
This (http://lmgtfy.com/?q=adding+images+to+a+JAR&l=1) should help. It was the first search result in Google.
Forum: Java Apr 22nd, 2009
Replies: 6
Views: 241
Posted By stephen84s
I already had a feeling you were working on a web application, thats why I had asked you to use sessions in your JSP, You can check this tutorial (http://www.jsptut.com/Sessions.jsp) to see Sessions...
Forum: Java Apr 22nd, 2009
Replies: 6
Views: 241
Posted By stephen84s
No it doesn't and I checked your "claim" by putting Windows in my VirtualBox and if you are already logged into Yahoo in one window and click on "log in" in the next window, it would just ask you for...
Forum: Java Apr 21st, 2009
Replies: 6
Views: 241
Posted By stephen84s
Although I haven't used a Windows box for quite a while, I do not think that is possible. You only log in with one mail Id and the other IE windows will pick up the same sessions from your cookies.
...
Forum: Java Apr 21st, 2009
Replies: 2
Views: 225
Posted By stephen84s
Its as simple as :-

String[] splitString = book[i].split("-");

Look here (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#split(java.lang.String)) for more details.

But beware...
Forum: Java Apr 21st, 2009
Replies: 2
Views: 562
Posted By stephen84s
Well I do not exactly whats wrong since you have not given us the table schema, but have you tried just printing the value returned by rsmd.getColumnType(1).

Although just for the record I do not...
Forum: Java Apr 18th, 2009
Replies: 5
Views: 1,373
Posted By stephen84s
@Vernon
Apparently I too thought he was more interested in finding the roots of his cubic equation, but reading his posts I guessed he was more interested in just plotting the graph.
Forum: Java Apr 18th, 2009
Replies: 5
Views: 1,373
Posted By stephen84s
The quick approach which comes to my mind is store a,b,c and d in an array say "coefficients" of size 4 and let the index at which the corresponding value is stored indicate the power of "x".
Ex:-...
Forum: Java Apr 14th, 2009
Replies: 2
Views: 1,696
Posted By stephen84s
Just correcting, he means the equals() (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#equals(java.lang.Object)) method of the String...
Forum: Java Apr 11th, 2009
Replies: 3
Views: 631
Posted By stephen84s
I assume you are getting the SQLException on the third line.
To create the table you will need to switch to the database you just created by using the use db-name statement or else while creating...
Forum: Java Apr 11th, 2009
Replies: 2
Views: 316
Posted By stephen84s
Excellent analysis of the problem, also let me congratulate you on the wonderful code alignment technique you have pioneered.
Also do not directly copy paste your assignment.

Here are a few...
Forum: Java Apr 7th, 2009
Replies: 8
Views: 270
Posted By stephen84s
Yep acknowledged doc, thats why I mentioned



So whatever he wished to mean by notifying, if it was **just some other db operation** he can accomplish it using PL/SQL in his triggers.

Of...
Forum: Java Apr 7th, 2009
Replies: 8
Views: 270
Posted By stephen84s
Alternatively you could use database triggers, but beware of their performance as triggers may affect the performance of your Inserts, Updates etc. Also then all your code would be PL/SQL and not in...
Showing results 1 to 40 of 531

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC