There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Joanne
and not to re-initialize toycar in place mthod.
1.So Place method's ToyCar instance is correct to assign xAxis,yAxis and Direction to the toycar
2.Where am in returning enum from the method...All methods are returning void
3.Yes NPE missing, I should have added that
4.I thought whatever I am adding to public static void main method is kind of testing....Is there any other way??
Is this ok...(minus the comments)??