doug shumway

Greenhorn
+ Follow
since May 29, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by doug shumway

more questions,
I've completed several lessons, how do I submit them to the "nitpickers"
21 years ago
do I post my work to the forum ?
21 years ago
thank you, I know the technique now I know the name
22 years ago
what exactly is meant by a java factory ?
22 years ago
premature response. there was another java.exe in c:\winnt\system32 ,a directory that appears prior to the 1.4 directry in the path statement.
I renamed the system32 java.exe and everything is kooool.
is this java.exe important and why all of a sudden the problem. is Bill G. slipping secret files into my directory structures.
Thanks
22 years ago
easy answer - Point p will never equal Point q,
either equals() or ==
Point a = new Point();
Point b = a;
if (a.equals(b)) is true because they both reference the same object, the default requirement for the equals method.
I posted a answer for possible solution to the equals problem in the intermediate forum
22 years ago
same thought, first action performed. results same problem. the reinstall first removed, than I reinstalled. really hard to imagine why javac path resolves and java path does not resolves
[ May 29, 2002: Message edited by: doug shumway ]
[ May 29, 2002: Message edited by: doug shumway ]
22 years ago
the default behavior, the equals method of object class, equates to true if both references point to the same object.
http://java.sun.com/products/jdk/1.1/docs/api/java.lang.Object.html
The equals method for class Object implements the most discriminating possible equivalence relation on objects; that is, for any reference values x and y, this method returns true if and only if x and y refer to the same object (x==y has the value true).
You can override the equals method within your class by using the reference passed to the equals
method
equals(Point p){
if ((this.x == p.x) && (this.y == p.x)){
return true;
}
else {return false;}
}
overriding the toString method
you can return whatever string or string concatenation you beleive to represent the objec
22 years ago
I'm unable to execute the java.exe from any directory except bin. javac works great from any directory, and java.exe does if I specify the entire path followed by the class name.
here is my path statement:
C:\WINNT>path
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\j2sdk1.4.0\bin;
here is my class path:
classpath=.;c:\j2sdk1.4.0\lib;
what am I missing ?
22 years ago
C:\WINNT>java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
22 years ago
I'm unable to execute the java.exe from any directory except bin. javac works great from any directory, and java.exe does if I specify the entire path followed by the class name.
here is my path statement:
C:\WINNT>path
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\j2sdk1.4.0\bin;
here is my class path:
classpath=.;c:\j2sdk1.4.0\lib;
what am I missing ?
22 years ago
well thank you doug, and here I thought no one would take the time to acknowledge such a simple question. you are kind person
22 years ago
well hi doug,
still confused ? u know, I'm also confused as to why javac is found but java is not. well doug I hope someone answere this simple question
22 years ago
I'm unable to execute the java.exe from any directory except bin. javac works great, java.exe does if I specify the entire path followed by the class name
here is my path statement:
C:\WINNT>path
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\j2sdk1.4.0\bin;
here is my class path:
classpath=.;c:\j2sdk1.4.0\lib;
what am I missing ?
[ May 29, 2002: Message edited by: doug shumway ]
[ May 29, 2002: Message edited by: doug shumway ]
22 years ago