2,443 Posted Topics
Re: I, personally, don't know the right formula for mortgage rate calculations, so please provide the formula you were to use as presented in your assignment instructions. In any case, when you get the wrong number, then the problem is usually that you have entered the formula wrong, which is the … | |
Re: Please start your own thread, and the problem should not be your computer, it is in the JavaScript that is being loaded from the server. Please start a new thread, and in a JavaScript Forum, not a Java forum. Also, if you will note this thread was started in Aug … | |
Re: Register for a domain name somewhere. | |
Re: As a comment on your signature, many military elements, in many countries around the world, have played around with weather control, and China is actually actively attempting to manipulate the weather right now to avoid droughts in some areas of the country (it hasn't been working to well, but they … | |
Re: Please tell me (I really want to know) how it is you think you have "knowledge" in jsp and servlet when you don't have knowledge of core java? That is patently absurd and practically impossible. Unless your knowledge of them is that you know they exist and that you know … | |
Re: That has nothing to do with jsp. Ask on a Javascript forum how you might be able to cause a parent window to close after opening a child window. The real question is, however, why don't you just simply open the new page in the current window? If it is … | |
Re: And nobody is going to do it for you. I will tell you though, that the biggest problem I see, off the top of my head after a two second code scan, is your WindowListener implementation. You won't be able to do this stuff in an Applet. Other than that, … | |
Re: change [inlinecode](possibleValues =[1])[/inlinecode] to [inlinecode](possibleValues[1].equals((String) selectedValue))[/inlinecode] This, obviously, only checks the answer against the second element in the array, if you wish to check the value against all values in the array do as follows: [code] if (selectedValue != null) { for (int i = 0; i < possibleValues.length; i++) … | |
Re: The code you posted so far will always return the first match of the last name. You never even look at the firstname that is entered, so as of yet you have not even accomplished the first part of your program. Try the first part using John Smith rather than … | |
Re: Check you oracle installation. If you do not know how yourself, then ask your Oracle DB administrator, if you have one. If this is your own Database, then ask on an Oracle forum how you can retrieve that info from the ORacle configuration (and, to be complete, how you can … | |
Re: Make sure you are using corejava.Format and not java.text.Format. | |
Re: If you have JDK 1.5 it is because you are not using Generics. Read about Generics in the New Features portion of the Java SE 5 documentation on Sun. [url]http://java.sun.com/j2se/1.5.0/docs/index.html[/url] | |
Re: Well, for one, you will need to check the elements of the array to know when to stop processing, and where to add the next element. Also, I believe that as soon as an array is declared, the memory that will be needed is reserved immediately (at least that is … | |
Re: I have the feeling that what he is doing, is adding the Vector as a Vector, then clearing the Vector, assigning new values, and adding it to the Hashtable again. @OP: If this is what you are doing then of course the values are changing for "both" Vectors, because there … | |
Re: This is definately a homework question, but I will give you a hint. Read the API for the class that all other classes extend implicitly. | |
Re: Why not just format the name as follows: file_name="GLISPO`date +%Y%m%d`.dat" | |
Re: Please continue in your previous thread [url]http://www.daniweb.com/techtalkforums/thread65124.html[/url] | |
Re: [QUOTE=fastmike;289801]dont you think if he wants to go in graphics designer field y in the world he wants to learn java? all he want to do is do his homework.[/QUOTE] It doesn't matter if he is interested in it or not. If his major requires a course of this nature, … | |
Re: So search for some Auth module on CPAN/ActiveState that might help you. There are lots of them. | |
Re: Have you tried using his suggestion yet? If you had, you would see that the expression syntax error should now be gone. The problem was that the variables char, words, and lines contained something like "86 filename" rather than just "86". With the above change they will contain just "86". … | |
Re: I'm sorry, but why are you posting an answer to a question that is 18 months old, and, according to the OP's last response, is solved. And your answer is wrong, I might add. You are attemtping to use array indexing into an ArrayList, which won't work, and is exactly … | |
Re: Most of these are also not the type of things Java should be used for, as the majority of them would require a Runtime.exec call. And those, almost always, defeat the purpose of using Java. | |
Re: I'm sorry, I don't mean to sound mean-spirited or sarcastic, but try a JavaScript Forum. Java != JavaScript | |
Re: I'm sorry, but Do Your Own Homework. Or at least make an attempt at it. | |
Re: Your JOptionPane is returning a String not an int. Capture your JOptionOutput in a String variable then do input1 = Integer.parseInt(String var) | |
Re: Well, supplying the errors you are getting would be helpful. | |
Re: [url]http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html[/url] | |
Re: What you need is ActionListener, addActionListener, and actionPerformed, all used almost exactly like the equivalent methods in the ProperChangeListener you are using now. Check out the API doc for JButton and ActionListener, and maybe the Swing Tutorial (almost all of the Swing tutorial examples use an ActionListener). | |
Re: That depends. If you use the same connection, then, obviously, autocommit will still be deactivated. If you close the question and get a new one for the next transaction (without Connection Pooling) then autocommit will be activated on the next transaction (unless you deactivate it again). If you use connection … | |
Re: [url]http://java.sun.com/docs/books/tutorial/index.html[/url] Start from the first Tutotial "Getting Started" and work your way down the list. Also, you will do your self a big favor if you actually type the examples given, rather than cut and pasting them. | |
Re: How about posting what you have so we are not guessing about how you are currently doing things when trying to present a solution that doesn't involve too much of a rewrite. | |
Re: [code] if echo "$var" | grep "," >/dev/null 2>&1 then echo "Variable contains char." else echo "Variable does not contain char." fi [/code] | |
Re: You do really need to look at some Applet tutorials. An applet does not use a main method, a standalone application does. Go to [url]http://java.sun.com/docs/books/tutorial/deployment/applet/getStarted.html[/url] for the Sun Applet tutorial. | |
Re: I'm sorry, but I need to comment. That is some leap, going from needing to know how to convert integers to strings ([url]http://www.daniweb.com/techtalkforums/thread61013.html[/url]) and then to needing to create your own programming language. Wow. | |
Re: This question makes no sense. Do you want a jsp login page or a cgi login page written in perl? The two things are entirely different beasts. If you want the latter, then please post on the perl forum or the cgi (if there is one) forum. | |
Re: [code] int i = 0; String str = "" + i; // or int i = 0; String str = String.valueOf(i); [/code] | |
Re: Do you mean Hibernate? [url]http://www.hibernate.org/[/url] | |
Re: There is a Net::SSH CPAN module that is easy to install, and needs a preinstalled OpenSSH, and I don't think it can do SFTP. There is also the module Net::SSH::Perl. This module does not need a preinstalled OpenSSH (or any other other SSH install), but it does need a whole … | |
Re: Runtime.exec( ) ; Search on JavaWorld.com for a good article about the traps and pitfalls of Runtime.exec | |
Re: It is because you are using Generics (which first came out in JDK 1.5.0) and are compiling with a JDK 1.4.2 compiler. You need to upgrade your JDK to a 1.5 version. | |
Re: Try a vb.net forum. This has absolutely nothing to do with Java, abd most people here will look on this question with scorn. | |
Re: What about simply running the entire string through two tr statements. The first one transforming either the the upper or lower case letters, and the second one transforming the other. That would be my first suggestion, but it would definately help to see the related snippet of code. | |
Re: 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: [url]http://today.java.net/pub/a/today/2005/11/29/solving-sudokus-in-java.html[/url] This may be a bit more involved than you need, and it is more for generating and … | |
Re: Runtime.exec() capturing the output and err streams and feeding the inputstream or opening a socket connection and attempting the protocol yourself. Read the API and tutorials for those, and search javaworld.com for a good document on the pitfalls of Runtime.exec | |
Re: use [code] system("command"); [/code] on a uniy system, do man perlfunc and search for system. I don't know where the docu is on windows, but since you are using it, you should, so if you are using windows look up the system call in the docu. | |
Re: Here is the fix: [code]INSTID="inst1 inst2 inst3" FANCID="fac1 fac2 fac3" for instid in $INSTID do echo "" done for fancid in $FANCID do echo "Instance on ${fancid} ${instid} instance" done done exit 0 [/code] You forgot to close one of the for loops. | |
Re: [QUOTE=hungdtran;266250]Hi Richard, What if that guy, in turn, asks you one or more questions and you don't know the answer(s)? Would you resign? You cannot judge people by a few questions. They may know what you don't and don't know what you do.[/QUOTE] Was this person you? Are you bitter? … | |
Re: I think you can extropolate my answer from your other thread to fit this one. It seems to be the same thing. |
The End.