2,443 Posted Topics

Member Avatar for skol10

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 …

Member Avatar for skol10
0
204
Member Avatar for Dr. Mojo

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 …

Member Avatar for masijade
0
109
Member Avatar for jeet_portal
Member Avatar for mgland

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 …

Member Avatar for aniseed
0
168
Member Avatar for madrasparty

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 …

Member Avatar for masijade
0
110
Member Avatar for sandeep0708

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 …

Member Avatar for aniseed
0
137
Member Avatar for Prashmon

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

Member Avatar for aniseed
0
163
Member Avatar for cassyjack

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++) …

Member Avatar for cassyjack
0
135
Member Avatar for fastmike

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 …

Member Avatar for fastmike
0
630
Member Avatar for mahul000

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 …

Member Avatar for jwenting
0
151
Member Avatar for gracin
Member Avatar for gracin
0
112
Member Avatar for eeswari
Member Avatar for Covinus

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]

Member Avatar for masijade
0
74
Member Avatar for bluebird

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 …

Member Avatar for aviasoorya
0
141
Member Avatar for binoy.M

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 …

Member Avatar for jwenting
0
211
Member Avatar for itchap

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.

Member Avatar for itchap
0
114
Member Avatar for rchadhaney
Member Avatar for hillol

Please continue in your previous thread [url]http://www.daniweb.com/techtalkforums/thread65124.html[/url]

Member Avatar for masijade
0
45
Member Avatar for rLh

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

Member Avatar for masijade
0
274
Member Avatar for jaguar founder

So search for some Auth module on CPAN/ActiveState that might help you. There are lots of them.

Member Avatar for jaguar founder
0
118
Member Avatar for crestaldin

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

Member Avatar for masijade
0
163
Member Avatar for ray_broome

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 …

Member Avatar for jwenting
0
2K
Member Avatar for ayesha sonia

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.

Member Avatar for jwenting
0
87
Member Avatar for Tim Stevenson

I'm sorry, I don't mean to sound mean-spirited or sarcastic, but try a JavaScript Forum. Java != JavaScript

Member Avatar for MattEvans
0
185
Member Avatar for phreaqhopp
Member Avatar for WaltP
0
143
Member Avatar for Lunaticrr

Your JOptionPane is returning a String not an int. Capture your JOptionOutput in a String variable then do input1 = Integer.parseInt(String var)

Member Avatar for karthikbgl
0
134
Member Avatar for Big John
Member Avatar for kimbokasteniv
0
310
Member Avatar for Sanchez10

[url]http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html[/url]

Member Avatar for masijade
0
51
Member Avatar for PPaul1

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

Member Avatar for masijade
0
273
Member Avatar for rpjanaka

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 …

Member Avatar for jwenting
0
237
Member Avatar for Ice4fire

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

Member Avatar for Ice4fire
0
107
Member Avatar for vdhara

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.

Member Avatar for jwenting
0
132
Member Avatar for sgriffiths

[code] if echo "$var" | grep "," >/dev/null 2>&1 then echo "Variable contains char." else echo "Variable does not contain char." fi [/code]

Member Avatar for masijade
0
58
Member Avatar for krauz2

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.

Member Avatar for masijade
0
104
Member Avatar for yneng21

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.

Member Avatar for WaltP
0
96
Member Avatar for Racoon200

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.

Member Avatar for Racoon200
0
66
Member Avatar for yneng21

[code] int i = 0; String str = "" + i; // or int i = 0; String str = String.valueOf(i); [/code]

Member Avatar for masijade
0
192
Member Avatar for mrwan
Member Avatar for jwenting
0
234
Member Avatar for mo_show_me

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 …

Member Avatar for masijade
0
209
Member Avatar for Joncamp

Runtime.exec( ) ; Search on JavaWorld.com for a good article about the traps and pitfalls of Runtime.exec

Member Avatar for masijade
0
79
Member Avatar for Jarell

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.

Member Avatar for Jarell
0
117
Member Avatar for Gowsi

Try a vb.net forum. This has absolutely nothing to do with Java, abd most people here will look on this question with scorn.

Member Avatar for masijade
0
115
Member Avatar for NonProgrammer

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.

Member Avatar for sn4rf3r
0
125
Member Avatar for desi_programmer

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 …

Member Avatar for kulandai
0
104
Member Avatar for deepak_patro
Member Avatar for crestaldin

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

Member Avatar for crestaldin
0
111
Member Avatar for Bucchi

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.

Member Avatar for roswell1329
0
74
Member Avatar for savage1

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.

Member Avatar for masijade
0
141
Member Avatar for Ghost

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

Member Avatar for jwenting
0
749
Member Avatar for shaun09

I think you can extropolate my answer from your other thread to fit this one. It seems to be the same thing.

Member Avatar for shaun09
0
116

The End.