Could a problem be that this line is NOT a constructor:
public void Star(double myX, double myY, double myLayer)
Type: Posts; User: Norm
Could a problem be that this line is NOT a constructor:
public void Star(double myX, double myY, double myLayer)
Only object references can have the value of null. If numberX is an int or double, it would have a printable value.
Your posted code is useless.