Google the following one at a time and pick the solution you wish to use:
POI
JExcel
JDBC-ODBC Bridge
Google the following one at a time and pick the solution you wish to use:
POI
JExcel
JDBC-ODBC Bridge
Return a javascript onload that erases the history, or something to that effect. Another thing that you can do, is to set all pages as no-cache and a very short expires. This would force the page to be reloaded (or at least ask the user if they wish to repost whatever), but since their session id is invalidated (it is isn't it) it won't be able to reload.
balance = (balance - monthly_principal);
monthly_principal = (monthly_payment - monthly_interest);
The monthly principal should be determined before it is subtracted from the balance, right?
As far as a print statement for paid in full, simply add a print statement after the loop.
Well, the error says it all.
Your method delares that it throws an exception. That means, that you must either call the method from within a try catch block, or the method (this time main) calling your method, must also declare that it throws the same exception that your method does.
By using the x variable pointed out in the first reply. If this is going to become a long-winded thread, then I feel obliged to point out something else that I feel you have not grasped. That is JavaScript != Java. JavaScript and Java are two different things. They have somewhat similar syntax, but they are not the same. Find a JavaScript forum, or (as a last resort) an HTML forum. You will get much better help there.
Yes, of course you can. What are the errors you are getting?
Check out the Tutorials at Sun. Everything you need. However, as of JDK 1.5 those methods are obsolete (although not deprecated) and you should be using the classes from the java.util.concurrency (or concurrent?) package. Make sure to check out that Tuorial as well.
JavaScript != Java
Find a JavaScript forum.
What error? We cannot play both compiler and JVM here to try and figure out what the error was, and where it is, so please help us out and post the complete error message, preferably with stacktrace.
You said you removed the passphrase, but here you are waiting for the passphrase prompt. Of course it will timeout as this should never come.
You should be able to comment out this block of code and the line or lines where you send the password and continue with the next expect pattern.
Not here, and not now. Actually for this exact type of thing, not at all any more. If I still had access to the code from certain parts of the last project I worked on I would have something very similar, but I don't.
Here is the design idea.
Start with a JPanel implementing ActionLisitener
Add an ArrayList (or something else to act as the DataModel)
Add a JTextField
Add a button to the Left that opens a popupmenu
The Action Listener takes the selected menu item, adds it to the JTextfield and fires an ItemEvent
There are a few tweaks still to make, but that is the gist.
Have Fun.
Sounds like you may be better off implementing a JTextField in combination with a PopupMenu. There you can use the menu separator. Pack them together into a custom component and you will be able to use it just like a JComboBox.
This was posted yesterday as well. I guess she doesn't like the "help" she was getting there. Which was to repost using code tags and put in a little real effort.
Yours:
public type method(){
method = method*2;
return this.method;
}
Correct
public int method(int value){
return value * 2;
}
Compare
Your description said
takes an integer argument
returns an integer
returned int is double the parameter
The only thing your method had was the "* 2" and nothing else.
I think you need to review everything you have covered in your class so far. And then continue on with the Telephone class.
Then maybe try posting the code inside of code tags so that formating and indexing are kept rather than everything being mushed against the side so that it is understandable and we may be able to help better. Trying to read that post "as is" hurts the eyes. You can't tell one part from another.
How about the following hints/tips:
1) Don't post the same question multiple times.
2) Give it a try. If you have specific questions come back and ask them.
And ClassNotFound or NoClassDefFound is always a Classpath problem or it simply does not exist. Check that your JBuilder configuration also contains this jar as a library or external jar.
This is a Java site not a Jawa site. It is a forum about a Programming language not an Electrical system of any kind.
And once again, it is not our fault that the stuff was tuned to faulty software.
Your JavaScript in the above post is malformed. Look at the first function. It isn't ended until the } at the very end of the JavaScript section. That is probably why you are having problems.
Learn Java?
Learn about how Auto Dialers work?
Put the two together?
Come on, really, this is a pretty vague question. You would be much better served pasting it into Google.
in query expression 'ProductID = , 1567'.
Actually I just noticed this, and would have to assume your problem is here. Either you forgot something before the comma, or added the comma when you should not have.
The MSJVM handles nothing better than the Sun JVM, unless it was specifically written to perform well under the MSJVM, and it is not our fault is someone tuned there product to a faulty JVM. It's like Explorers early tries at JavaScript, it got it so wrong, with so many security holes, but at the same time so many handy side effects (which were bugs not features especially since many of them ran completely counter to the specs) that many people tuned there JavaScripts to these "features". Then everybody screamed when some of things started getting fixed.
I don't mean to sound mean, but try Google.
Stop attempting to call me out simply because you don't like the good advice you are getting, and accept it, and I will stop posting in it. It's easy, accept your task, do your work (or at least make an honest attempt at it), and remain civil (especially when you are the one that needs help), and will find that things run much more smoothly, effeciently, and productively.
Sounds like it may be a classpath (probably is) a classpath problem. Please state exactly where you placed the jar and post your complete classpath. It may also be that this package also requires another package that either don't have installed, or is not contained on your class path. Check the documentation and your install for this possibility.
What error did you get?
I don't really know too much about how this game works, and don't really have the time or desire to investigate it at the moment, but a quick search turned up this:
http://today.java.net/pub/a/today/2005/11/29/solving-sudokus-in-java.html
This may be a bit more involved than you need, and it is more for generating and solving rather than checking, but it should definately help. Then again, it may be more than you really want.
Have fun. :-)
It's not me that has attitude. I have told you what you needed to do a few posts ago, and that is to start with paper and try to design a flowchart/schematic for this program, and then start with the coding. But you insisted that I look at your code and place pointers in there, well I did. It is not my fault that the only method that is even anywhere remotely usable is the display method. It is also not my fault that the display method is obviously copied from some other place since all of sudden it is taking about studentNames instead of dates and uses the wrong type of array. If you don't like the code review that you got, then maybe you should put a little effort into writing the code next time. You say you spent four five hours, but seemingly you did not even try to compile those parts of it that you had or many of the problems that were pointed out would have been fixed. You would have imported the classes that needed to be imported, and the method parameters would at least have had the right types. I was simply being honest in my code review. Attempting to either "sugar-coat" the review, or do the work for you (which I am sure was what you actually wanted) would not help you, it would hurt you. The second might have let you pass this assignment, but then you would be even more …
/*
* You should give your class a package as it is truely frowned upon these days
* to place your classes in the "main" namespace.
*/
import javax.swing.*;
public class pro1111 {
public static void main (String [] args) {
/*
* I assume you have your own TextFileInput and TextFileOutput
* classes as these are no part of the JDK. And if so, you have not
* imported them.
*/
TextFileInput in = new TextFileInput("Dates.txt");
TextFileOutput out = new TextFileOutput("Dates1.txt");
String line = in.readLine(); // I also assume these classes handle the exceptions
while ( line != null ) {
// StringTokenizer is a bit old fashioned. You should probably look into
// Scanner and or String.split(). But what you really want is to simply read
// the entire String and not break it down into pieces.
StringTokenizer st = new StringTokenizer(line, "/");
int monthNumber = Integer.parseInt(st.nextToken());
int day = Integer.parseInt(st.nextToken());
int year = Integer.parseInt(st.nextToken());
out.println(monthNumberToName(monthNumber) + " " + day + ", " + year);
// You should also be storing the dates here rather than simply printing them
// out. Probably with an ArrayList. Then, after you have them read in and
// stored somewhere, you can start using another loop or two to compare them
// and get them into the proper order.
line = in.readLine();
}
}
private static compareDate(string date1, string date2) {
// Why do you designate two dates (in String format and it should be String not
// string) and …
You misunderstood what I said. I am not going to do it for you, and posting the assignment text won't help. Take this text and a piece of paper. For each of the methods listed draw a little box on the paper and label it as the method and write a word or two to describe its purpose. Then begin drawing lines between these boxes with some text explaining the relationship to describe how these methods are to work with each other. Then take this information and begin coding your methods (remembering to call the write methods in the write order from the write places) as per your drawn up action/design plan.
You need to seriously inspect your design. The compareDate method is not called anywhere, except from within itself, and then only with two date Strings (a date String is not a Date, just so you know) that are also defined within the method. Were this method ever called from anywhere else, it would lead to an infinite recursion error.
You need to go back to paper and chart out exactly how the program should operate, and then translate that plan of operations to code.
That's not what he said. Netbeans has a graphical Interface builder, so in order to make the GUI he did not need to know very much Java at all. That's the problem. Now he has to make and use the gui without Netbeans' help, and he's lost.
What windows version are you using? I know of no half-way current version of windows that still uses MSJVM.
But, is it all applets that do this, or only the ones you have built?
Since I still believe that the Java itself is okay, but that it is what the application is doing that is driving the CPU cycles so high.
Read up in the Java 5.0/JDK 1.5 New Features Document at Sun. This is the "improved for loop or so-called for each loop".
We do not support SiteBuilder here. Java, in itself, is okay. The problem is what SiteBuilder does with it. You should ask either Yahoo Support (if there is such a thing) or a Yahoo forum (again if there is such a thing).
The ObjectInputStream can only be created using another InputStream of some type. A quick look at the API docu would tell you this. So no, you can't. You could combine it all on one line rather than using itermediate statements, but the work done is the same and is only more confusing to look at.
Well, of course it does, when you are not making any effort to sort the information. First you need to equate the data in the two arrays with each other (probably hashmap) then look at java.util.Arrays to sort the score and output the info from the hashmap.
Just so you know, I don't answer PM's. To give you a hint a while -- read loop and a sed command or two will allow you to completely emulate the wc command in a script without getting into any fancy convoluted constructs at all. It won't be all that effecient, but it won't be bad. Make an attempt using this info, post the code you tried, and I may help you further.
That's because the perl script is running on the server side, so you simply attemtped to open notepad on the server, rather than the client. If you want to open something on the client, then you need something that is actually executing on the client such as JavaScript, or ActiveX controls, etc.
And, obviously, you did not bother to read the rest of the post. The given answer was obviously a joke. I then went on to ask you why you need it. In a work situation I can't see this requirement coming up, so I have to assume it is for a homework assignment. If that is the case then I will continue with the tone of your last post and say piss-off. If there is a valid reason, then I will give you some real help, although it will not be a finished script in any way shape or form. So, as I asked in my first post, why do you need this?
Maybe if you include the actual query statement from the code.
#!/bin/bash
wc $*
No seriously, why do you need this? This sounds suspiciously like a homework assignment.
The shared library that IO::Tty uses can't be found. If you have a compiler on the computer, your best bet would be to download the IO::Tty module from CPAN and reinstall it (and any others that the module complains that it needs when you try to compile it).
If that is not possible search on that other machine for a (I believe it is called) Tty.so file. You are probably better off however (if the two systems are of the same OS and Architecture) is to copy the entire perl directory from the machine that works to this one that is complaining.
You currently have a completely mangled Perl installation. Your best recourse would be to reinstall it with all modules that it had before, failing the ability and/or time to do this and you must copy from one to another, then copy the entire perl distribution. It will save you alot of time and frustation.
If these lists are not too long, you would be better off generting a few hidden tags on your form and use pure JavaScript to pull values from the hidden tags to populate your second list. So say your values lists are as follows:
1st List Entry Values for second list
AAAAA 11111,22222,33333,44444
BBBBB 11111,33333,66666,77777
CCCCC 55555,66666,88888,99999
then you would create 5 hidden tags with the name AAAAA and each one would contain one of the corresponding values. The same for BBBBB and CCCCC.
Then in java script using an onSelect call, you would then populate the second list using the values "hidden" under the same name as the selected value. As long as the lists are not too large, this would be a very good way to solve your problem.
If you still wish to use AJAX, then I would suggest you find some AJAX tutorial sites and get at least a general idea of how AJAX works and how you program it. Then try to do this, and if you have a any specific questions on how to continue find an AJAX and/or JavaScript forum site to ask these questions.
javascript for validation and not null would be fine, except for those people that disable javascript in their browsers, and them doing that should not affect the ability of your jsp to deal with their input and in this case it would as a nullpointer exception would be thrown.
JavaScript is nice to use. You can accomplish a lot with it, but you should never depend on client side verification.
See Above link. The class you want is probably HttpUrlConnection.
So what is your soecific problem? What error are you getting? What effect are you observing that you did not expect?
Did you not read jwenting's reply directly above yours? Look in the API for a single method call to reverse a String. I will give a small hint, the class is not String but does begin with it.
Did you remove the comments in the catch block or only the comment symbols (i.e. /* and */). If you removed the comments all together, then of course you are still not seeing any errors as the catch block is still empty. Make sure the catch block is actuall doing something. Your catch block should be as follows:
catch (Exception e) {
System.err.println("Insertion Error: " + e.getMessage());
e.printStackTrace();
}
Make sure that it is that way, and try again. Then tell us what error you get.
And, trust me, if your path were wrong you would be getting errors. Usually ClassNotFoundException errors.