Doug Wolfinger

Greenhorn
+ Follow
since Jul 27, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Doug Wolfinger

Hmm. So they just have to be up to date with a questionable version of an operating system that replaces Win98, which I personally have never had any problems with. But they're happy to stick with a jvm that's 3 or 4 years old? If you can download an older version of tomcat, why can't you download a newer version of the jdk? I've read that all sorts of things change with tomcat when using an IDE with java, instead of dos, and I've never used one, so I won't be of much more use.
HOWEVER, I've heard that 4.0.3 has a bug when working with RMI. The other older versions might have all sorts of other bugs...
22 years ago
My 4.1.18 runs fine on Win98, and I didn't do any modifications, except setting JAVA_HOME in autoexec. Does it run differently on xp? Also does this latest version run on jdk1.2.2? I'd consider upgrading the jvm.
22 years ago
The connection syntax was given to me by the webhost, and I'm positive that my database userid and password are correct. Should I ask the webhost what is going wrong? I'm not sure what you mean by quotes around html tags because the br tag does have quotes around it in the out.print statement.
Thanks!
I tried the if statement with the do-while as well as the SELECT *, but am still getting the same output. My DBTools shows me those tables have the data. What could be going wrong? Thanks again.
Hello,
I am trying to print the results of a simple query. ITEM is the first of four columns in my table, and is the only one I want to see the results from. But the browser only displays the basic info from the jsp code near the top of the program when I enter the url. I have marked the SELECT statement with a comment. Thanks!
The output...
MySQL-JSP, hello.delete mm.mysql.libdelete mm.mysql-2.0.3.lib
hello world
The current data and time isSun Dec 29 21:06:50 PST 2002 after DriverManager con!=null;1
after show table
con!=null;

[ December 29, 2002: Message edited by: Doug Wolfinger ]
Thanks, all. I have a beta Mocha installed but can't get it to work, so I used DJ. The decompilation was very pleasant but I noticed some disturbing things afterwards. For one thing, I couldn't get into my c:\ where the executable was located after the decompilation. It was alarming. The software locked up the c:\ somehow. So I closed Win Explorer and everything was fine when I reopened it. And I noticed that all class files had the DJ icon. I decided to get rid of it, and deleted the DJ files that made all the class files associate with it.
I didn't realize the source code would be neatly formatted by the decompiler, so that was a nice surprise.
If the new version of Mocha works I might go with that; it operates from the dos command line, so it should be less obtrusive.
[ November 19, 2002: Message edited by: Doug Wolfinger ]
22 years ago
Please help! I ran a program and redirected the output to a flat file, but I named that file the same as the program name. So I overwrote my program, Selection.java, with the text of the output by saying java Selection > selection.java. Anyone know the DOS command to convert the .class file back to the .java file?
EDIT: I'll try to find a decompiler at downloads.com. Isn't javap supposed to do this? It does something, but it doesn't create the .java file when I run it in \bin.
Thanks,
Doug
[ November 18, 2002: Message edited by: Doug Wolfinger ]
[ November 18, 2002: Message edited by: Doug Wolfinger ]
22 years ago
My bad. I've copied this to the Intermediate forum.
22 years ago
Hello,
I've copied this from the Beginners forum, as I malignantly posted it there originally.
I am trying to pass a string that represents a postfix expression. The method that accepts it should take each number and place it on the stack. When it encounters an operator, it should pop the top two numbers and evaluate them with the operator.
This is the expression. "abc+-"
a=7, b=3, c=12 So it applies "+" to c and b, then it subtracts (c + b) from a. I have made the string into a string array in my program, but I think the idea is to pass the expression as a regular string as I have it above. I would use substring(), but that doesn't work with a number larger than 2 digits. Thanks!
22 years ago
Hello,
I am trying to pass a string that represents a postfix expression. The method that accepts it should take each number and place it on the stack. When it encounters an operator, it should pop the top two numbers and evaluate them with the operator.
This is the expression. "abc+-"
a=7, b=3, c=12 So it applies "+" to c and b, then it subtracts (c + b) from a. I have made the string into a string array in my program, but I think the idea is to pass the expression as a regular string as I have it above. Thanks!

If you would like to use that program, you'll need this one, too.
22 years ago
Hi,
I am still trying to figure out this method compareTo.
Node2.java implements Comparable. So, in using Node2 to cast in the comparison, I would think that I'm fulfilling the obligation to use a Comparable object to do that. Everything I am comparing is an Object, so I can't see what the problem is. The 3 compiler errors are "can't resolve symbol."
Thanks!
Here is Node2, which contains the compareTo method, making the Node2 type Comparable.

Here is Noding6, which extends Node2 and implements compareTo.

[ October 18, 2002: Message edited by: Doug Wolfinger ]
22 years ago
Regarding the end of the loop, I suppose I could add
However, I'm now getting an "Incompatible types" compile error from the while statement in sortedAdd(). The compiler says "found: int" "required: boolean", and points to the paren that follows "compareTo". So I've got my work cut out for me.
Btw, how do I capture the console's output. I thought "javac pgmname.java > pgmname.txt" would places the output in the text file, but it's not working. Thanks!
22 years ago
I am trying to add String items to a sorted array list, using compareTo to find the proper position for each item.
This is the runtime error I get when I run ListPop.java with sortedAdd() defined with a String, instead of Object, in the argument list.
Exception in thread "main" java.lang.NullPointerException
at java.lang.String.compareTo(String.java:789)
at java.lang.String.compareTo(String.java:825)
at SortedList.sortedAdd(SortedList.java:41)
at ListPop.main(ListPop.java:17)
When I try to define sortedAdd() with an Object, instead of a String, in the argument list I get this error message when I compile SortedList.java
SortedList.java:41: cannot resolve symbol
symbol : method compareTo (java.lang.Object)
location: class java.lang.Object
while(item.compareTo((Object)arr[pos]) <= 0) {
1 error
Here is SortedList.java

Here is FullName.java, which implements compareTo()

Here is ListPop.java, which attempts to populate the array.

It should put the first item in the array here

so why is it giving me the NullPointerException for arr[]?
New ones should be added when the while loop in sortedAdd() finishes, right?
Thanks!
[ October 09, 2002: Message edited by: Doug Wolfinger ]
[ October 09, 2002: Message edited by: Doug Wolfinger ]
22 years ago
I've solved it. I should have had the for loop counting down

Thanks!
22 years ago