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.
Code Java is broken, I have same issue with Java both 7 & 8. My code couldn'd pass TC = 16 years. It's printed "You are a teenager." then "You are young.". I printed input - year was turn to 3 instead 19. I suppose it's some issue with main programm.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Class vs. Instance
You are viewing a single comment's thread. Return to all comments →
Code Java is broken, I have same issue with Java both 7 & 8. My code couldn'd pass TC = 16 years. It's printed "You are a teenager." then "You are young.". I printed input - year was turn to 3 instead 19. I suppose it's some issue with main programm.