We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I had the same issue and I think the ...dots are causing the problem. Change your " System.out.println("Age is not valid, setting age to 0"); to System.out.println("Age is not valid, setting age to 0."); Add a dot at the end and let me know if it works for you.
Day 4: Class vs. Instance
You are viewing a single comment's thread. Return to all comments →
I had the same issue and I think the ...dots are causing the problem. Change your " System.out.println("Age is not valid, setting age to 0"); to System.out.println("Age is not valid, setting age to 0."); Add a dot at the end and let me know if it works for you.