| |
thread by: H Brown New To It |
last post Jul 17 '05 by: Roedy Green
I am very new to Java. How would you go about making Java program that
reads in a fixed length text file (myfile.txt) and pass the data into
a table in an sql table?
The text file data looks something like this:
123456John Smith Acme Boxes Inc 100 Someplace Drive
222222Sarah E. ConnorCyberdyne Systems Corp 1 Connorsbane...
|
thread by: Jack Smith |
last post Jul 17 '05 by: Jim Nastos
Hello,
I need to show the following language is NOT context-free, using the
pumping lemma for context-free languages.
L = {wwdouble(w) | w is an element of {a,b}*}, where double(w) is
derived from w by doubling each symbol, e.g. for w = aba, double(w) =
aabbaa.
|
thread by: Rick |
last post Jul 17 '05 by: Rick
Hi,
Call me stupid but where can I find the messagebox in Java?? Or do I have to
create one myself? What I need is a simple function just like Alert( "I'm
annoying!" ); in JavaScript.
Greetings,
Rick
|
thread by: Murat Tasan |
last post Jul 17 '05 by: John
how well is javac from sun's jdk tools optimized?
wow, that's a general question... so i guess here is a simple example...
let's say i have a program that uses an array.
and many times in the program i need to do computation that rely on the
array's length.
so, how much speedup (if any at all) is there to storing the array length
as an...
|
thread by: J.Eddy |
last post Jul 17 '05 by: Christopher Blunck
Does anyone know how to go from a WSDL2Java generated class to an XML
string of XML document. I know that there is some serialization here
but I don't know what classes to call to do the serialization. Can
anyone help?
Thanks
_someGenClass someClass = new _someGenClass();
// do I use this function or is there some XML serialize class...
|
thread by: Rajatheone |
last post Jul 17 '05 by: David Iain Greig
Hi all,
I've basic knowledge of TAPI and made couple of applications.
But as far as JTAPI is concerned, I cannot understand any thing out
of it.
As to what is this 'Implementation', JTAPI itself cannot make a phone
call,
What hardware are we talking abt, I know like avaya does give the
CT-Connect and ctcserver.jar, is this is called an...
|
thread by: Nuggy |
last post Jul 17 '05 by: Bill Dennis
Ok, I'm ready to toss this thing across the room. Here's what I'm
trying to accomplish, greatly simplified:
I have a screen with several text fields. I want to validate the
entry in each text field when the user tabs out of it to the next one
(some fields are required). If they enter an invalid entry or leave
it blank, I want to display...
|
| |
thread by: Tjorven Lauchardt |
last post Jul 17 '05 by: Tjorven Lauchardt
Hello,
I am creating a application with Batik and I have the following
problem. I am buidling a DOM Tree and I want to know the bounding box
of the text-Elements while I am building the DOM. I need that
information, because I want to create a fitting rect as a background
for every Text-Element and for other layout-reasons.
Can someone...
|
thread by: H Brown New To It |
last post Jul 17 '05 by: Dave Monroe
I am very new to Java. How would you go about making Java program that
reads in a fixed length text file and pass the data into a table in an
sql table?
The text file data looks something like this:
123456John Smith Acme Boxes Inc 100 Someplace Drive
222222Sarah E. ConnorCyberdyne Systems Corp 1 Connorsbane Plaza...
|
thread by: Christophe |
last post Jul 17 '05 by: Christophe
Comment faire dialoguer 2 applets présentes dans 2 frames différentes
d'une page web.
|
thread by: Hal Vaughan |
last post Jul 17 '05 by: Hal Vaughan
I've been using Runtime.exec() like this:
Runtime rt = Runtime.getRuntime();
try {Process p = rt.exec("MyCommand.bat");} catch (Exception e) {do stuff}
When I start my Java classes, I start them with a batch file that changes to
my apps home directory. I've tried exec() with a full pathname (which
seems to have problems on Windows if it...
|
thread by: Konrad Den Ende |
last post Jul 17 '05 by: Konrad Den Ende
Is there a ready to use layer for playing up a QickTime-file?
I'd hate to write it on my own.
--
Kindly
Konrad
---------------------------------------------------
May all spammers die an agonizing death; have no burial places;
|
thread by: robert |
last post Jul 17 '05 by: robert
i posted this on comp.databases.db2, but no response. so, i
ask from the other side.
i've been posted to a project where there have been attempts
to store class files in db2. i'm told that this didn't work. no
mention of what "didn't work" meant, but i assume that the
retrieved class file wouldn't execute.
the server is WebSphere 5 on...
|
thread by: John Bowling |
last post Jul 17 '05 by: Matt Smith
I have a java (2.0) program with the following lines:
String cmdArray1 = {"lp", "-d", "hp4m", "MyFile"};
System.out.println(Runtime.getRuntime().exec(cmdArray1));
It compliles properly, but does not print the file to the printer. It
displays the following as the return from Runtime...:
java.lang.UNIXProcess@1034bb5
|
thread by: Sean O'Rourke |
last post Jul 17 '05 by: Sean O'Rourke
I have created a programming site available at
http://blackfrog.pagemac.com. The main resource though is the forums
at http://blackfrog.pagemac.com/forums/. It has both programming and
community boards. Please stop by and just say hi and check out the
boards. Also, I am available at the board if you have any programming
related questions....
|
| |
thread by: Jaques |
last post Jul 17 '05 by: Robert Tyrie
Hi,
I'm looking for a tool that converts a jar into an executable program (or
something like that). I guess there are a couple of options:
1) Convert the jar into a real executable that runs natively on
the operating system (or similar)
2) Pack a jar file and JRE into one file, and make it look
like an executable file (or similar)
3) any...
|
thread by: Rick |
last post Jul 17 '05 by: FISH
Hi,
I'm having a little problem with the string tokenizer. For example, I got
this data string :
"0#0#0#0####0#0#0#.. and so on....."
How obvious, the # char will be the delimiter. But as you can see, at some
points there are two or more brackets pasted together. I want to let the
program return an empty string but the tokenizer just...
|
thread by: Scott Khan |
last post Jul 17 '05 by: Scott Khan
We have a Java Swing position. Need consultants ASAP.
Position : Java Swing XML / SOAP - FX / Brokerage
Requirements :
Swing - JTrees / Jtables. other swing classes. etc.
Java/ J2EE. JDK 1.2-1.4
XML / XSL/ XSLT
Duration : 6+ months
|
thread by: Maarten |
last post Jul 17 '05 by: Maarten
Does anyone can help with this?
For our goose game, we have to create the game board in a spiral. It
may be a square instead of an oval or circle. Does anyone know a
simple formula to do this with a variable amount of fields?
I already created a table of fields (every field is an object of the
type JLabel).
Tnx in advance!
|
thread by: Chen Yang |
last post Jul 17 '05 by: nos
suppose there're three String a, b and c, the length are not fixed.
how can i make the format a b c so that three arrays align to the
left?
ok, i know it's stupid.. but i don't think using StringTokenizer to
implement my own format is a good idea... plez help me out, thanks a lot!
|
thread by: Rick |
last post Jul 17 '05 by: Stewart Gordon
Hi,
We all know that Java has classes but how about basic storage objects like
structs? C and C++ have Structs, Pascal has Records, Visual Basic has Types
etc. How about Java?
Greetings,
Rick
|
thread by: Munk |
last post Jul 17 '05 by: Paul
Hi,
I have a question.
Let's say I want to make a simple java program where the first argument
passed to the java program is doubled and returned. I.e the reult of doing:
java Double 5 - would return 10.
This is turning out to be really hard as I have no idea how to "access" this
argument in java. If someone could help me out that...
|
thread by: Laban |
last post Jul 17 '05 by: Rick
Does anyone know how I can fetch a trigger/break signal via the
serial-port?
I have a circuit that connects two pins on the serial-port when the
sensor is activated (when a person stands infront of the photocell).
How can I get this to interact with my Java code? Or is there a better
alternative then the com-port?
I want a piece of...
|
| |
thread by: da Vinci |
last post Jul 17 '05 by: Doug Pardee
Greetings.
I have been posting on the C++ newsgroup for a while now as I learned
C++. I start JAVA in January and am gearing up to tackle the language.
Is there a FAQ for this newsgroup so I can become familiar with any
regs prior to needing help?
Thanks.
|
thread by: Nick |
last post Jul 17 '05 by: Michael Scovetta
what do the words 'foo' and 'foobar' mean?
|