You seem to have it working.
Person: Sam (1.40)
Person: Mary (3.29)
Person: Harry (3.30)
Person: Beth (16.40)
Originally posted by Simon Evans:
(I ... am running Java 1.6 (see the compiler output I posted for Steve Luke, or output below)).
C:\Java\Java Six>set PATH=C:\Sun\AppServer\jdk1.6.0_05\bin;%PATH%
I not too sure about the "int emp1Age = ( (Employee) emp1).getAge();" bit, but hey - it works.
Originally posted by Steve Luke:
Do a javac -version as a sanity check. My guess - your %PATH% variable has the jdk 1.4 path in it, and because it comes after the 6 JDK you add to the path it gets used instead.
I have a suspicion you can get that sort of compiler error from a tiny spelling mistake; I shall look at your code soon and see what I can make of it.
campbell@linux-pgix:~> java -version
java version "1.6.0_10-beta"
Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b25)
Java HotSpot(TM) Client VM (build 11.0-b12, mixed mode, sharing)
campbell@linux-pgix:~> javac -version