stephen84s 550 Nearly a Posting Virtuoso Featured Poster

First we need what is in your "qry" variable.
Also if you want is use features like rs.last() etc, then I recommend you use a scroll insensitive resultset.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

I assume you want a Speech API for Java, So you can look here and here for that.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Have you made someone happy today ? Or have you solved a thread today ?

If a thread was not marked as solved does it qualify for it ??

Do Lipton Tea employees take coffee breaks?

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Owls can only see at night

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Try:- www.java2s.com
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.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

950

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

946

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

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 life here after her 'accident')

If you would look at the amount of restrictions here, you'd think you are being forced into celibacy :P .

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

942

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

CMS --> Drupal

I do not know how they are related but google says so :P

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Learn how to handle your own responsibilities.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

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 value at the corresponding index in the counter array.
For Ex:-

Assume the names in the original names array are :-
names[0] -> Aaragon
names[1] -> Gandalf
names[2] -> Frodo
names[3] -> Sam
.
.
.

And lets say you selected on random "Sam", So in the counter array just increment whatever value is at index -> "3"
So you will know which name has been selected how many times at the corresponding index of the name in the "counter" array.

Note:-
There are better methods available especially using the Collections library in Java, but since you are just starting out I have recommended this one.
Also I haven't really read your code, I have just replied to the question above it.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

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 console like this:-

java -jar jar-file-name.jar <path-to-main-class>

where your path to main class is the package hierarchy path in which your main class resides, for ex: if your main class say "Alpha" in package "foo" which is in turn in package "bar", your <path-to-main-class> would be "bar.foo.Alpha".

If this command works correctly it means you JAR is fine only you have specified the manifest file(in the JAR) which should point to your main class.


However I also suggest you try to make a JAR file directly from the console so that you know actually what goes on behind the scenes in Eclipse. You can check out this for JAR file specifications.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

From what I understand, I just need to have the three interest rates each on thier own line.

5.75
5.0
5.25

Well if you had the contents formatted as:-
InterestRate1=5.75
InterestRate2=5.0
InterestRate3=5.25

Then you could have used the java.util.Properties class's load() method, all you would have to pass to it is a FileInputStream object on your file, and then you could access the different interest rates by using the corresponding Properties objects getProperty(String) method. ex: p.getProperty("InterestRate1")

But I guess this would be an overkill and ~s.o.s~'s method will best suite your purpose.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

poisoned

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

938

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

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.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

936

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Love it.


Killing time ?

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Yes it would be if all the people who read the book, quit reading any book after it.

If vegetarians eat vegetables, do humanitarians eat humans :-O ?

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Jack and Jill went up the hill to fetch a pale of water.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

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, here is its link.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

anyone please tell me where i can get mp3 player for motorola v3i.
Thnks

Yes and someone tell me where I can get the moon !!! :P

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

932

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Would you mind helping us help you by helping yourself to this announcement 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.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

928

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

First thing is you will need to install JDK from Sun, you can get that here. 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 System.

Hopefully you are using Windows 2000 or higher, If so on your desktop right click on "My Computer" and go to "Properties".

In the Window that opens up, click on the "Advanced" tab, and in that click on the "Environment Variables" button.

In the Environment Variables window, highlight the path variable in the Systems Variable section and click edit, At the begining of whatever value you have in its "Value" field, add the following "<JDK_INSTALL_DIRECTORY>\bin;" (without the double quotes and including the semicolon), where <JDK_INSTALL_DIRECTORY> is the directory in which your JDK is installed (for my windows OS it was "C:\Program Files\Java\jdk1.6.0_11\").

Once you have done the above, just open a new Console window and type "javac" to see if the path has been set correctly.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Take a look at the Jasper Reports API.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Not until you show us what effort or analysis you made in tracing that error.
And as I said before do not just vomit back what your system throws back at you, show us some analysis, some effort from your side.

**Also my instinct suggests this is not your code so better show some effort in at least diagnosing the error**

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Do not use the jdbc:odbc bridge for real world systems where performance and features matter, use a type 4 driver like jTDS instead.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

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 the presence of an echo server by typing "telnet localhost 7" on your command line and see if it connects. If it displays "Connection Refused", then thats a confirmation that there is no echo server on your system.

However I remember someone posting code for a custom Echo-Server on these forums, if you do a search then you should find it.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Like it

Astronomy

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

924

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

920

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Hi stephen,
This a very unusual problem for me. When we pass the data to save it into database through session, then the some data are lossing. So that, data from another session is coming to save to database. I dnt know how is it possible??????

*Sighs* I guess he could neither understand you nor my taunt directed at him

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Do not perform database manipulation directly from within scriplets, here is a tutorial how you should actually be going about performing database operations in web applications.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

No new word suggested so I will suggest mine here:-

made

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

916

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Here is a tutorial on Object Oriented Programming with Java, Should help you get started with how to model your classes.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

If he really wanted teach / advice / help he could do it in a not humiliating way (reduce java's level!)

Now whats so humiliating in that ??? Such a big attitude from a guy seeking help, this absolutely ridiculous

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

912

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Now that I actually saw your code, you have actually reduced Java to the level of a Structured Programming Language, So in order to really design your applications better I suggest you go through this tutorial, for introducing you to the world of Object Oriented Programming.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Neither we can detect any problem as you failed to provide your code...

What kind of moderator are you ??? You can easily use your crystal ball to pin point the problem :P

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

I didnt see that someone else had replied

Almost everyone here tries to help and even verruckt would have if you would have given us the required details first and eventhough you would not like to hear it, verruckt is correct, although I do not mind the question on Java, you have not taught him to code properly. The first thing you should have taught him to do is get him to organize his code correctly, with proper indentations, line breaks etc. In case you too are unaware of any standard coding conventions, here is a link to Sun's Java coding conventions, you can either browse it online or download the PDF.

<EDIT>
Nice catch ~s.o.s~, that comment got by me

stephen84s 550 Nearly a Posting Virtuoso Featured Poster
private JButton SubmitButton = addButton ("Submit Answer" ,1,9/8,1,1);

I think this is the problem, I do not see any addButton() function in your class Math4, which returns an object of type JButton.

I suggest both you and your student to go through this tutorial to get your concepts on creating GUI with swing right.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

I am tutoring him, and ya sometimes I need help. And I will make sure he understnds the solution.

But how about you understanding us and pasting the exact compiler error and helping us help you help him ??? :P

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

First one piece of advice : Use Consistent indentation, Some places you have indented your code, at other places you have just forgotten or put extra tabs for no reason.

Following is the lin for Java SE 6 docs:- http://java.sun.com/javase/6/docs/api/

Make it a point to look there if first your need some functionality from some of Java's inbuilt classes, for ex: "String" class in this case.

Next use the charAt(int) method of the String class if you want to access each of the characters individually, just like an Array.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

908

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Note: I know the code is not formatted well, with spaces and tabs. Sorry, it is no my code it is a student who I am helping.

Use an advanced IDE like Eclipse or Netbeans, they have features like autoformat using which you can automatically format any code, no matter how badly it is written.

And just as BestJewSinceJC said, paste the exact error (without editing it) the compiler is throwing up.

stephen84s 550 Nearly a Posting Virtuoso Featured Poster

Show us the code of what you have tried.