DEV Community

[Comment from a deleted post]
Collapse
 
tea_lover_418 profile image
Tea Lover

My guess is that it doesn't compile because you can't acces the private String name on the second print.