T
Tuurbo46
Hi
Im currently having a bit of a problem assesing a hashtable. The below code
compiles ok, but nothing ends up in my hashtable. Could somebody offer me
some advice on where im going wrong. Also i would like to retrieve this
data and display it? Would i use the .get method for this?
}
Block b[] = cc(motorModel);
MotorBike plane = new MotorBike(b, motorRegisNum, motorModel);
if (!motorBike.containsKey(motorRegisNum))
{
try {
motorBike.put(MotorRegisNum, motor);
}
catch(Exception ex){
System.out.println("Problem Adding motorbike to a hash
table");
}
}
Thanks tuurbo
Im currently having a bit of a problem assesing a hashtable. The below code
compiles ok, but nothing ends up in my hashtable. Could somebody offer me
some advice on where im going wrong. Also i would like to retrieve this
data and display it? Would i use the .get method for this?
}
Block b[] = cc(motorModel);
MotorBike plane = new MotorBike(b, motorRegisNum, motorModel);
if (!motorBike.containsKey(motorRegisNum))
{
try {
motorBike.put(MotorRegisNum, motor);
}
catch(Exception ex){
System.out.println("Problem Adding motorbike to a hash
table");
}
}
Thanks tuurbo