You are viewing a single comment's thread. Return to all comments →
I think you forgot that str instance string. See the requirements. That's something they use to test this. IDK how.
I avoided str instance for purpose, because I didn't want to spoil whole solution
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Java Singleton Pattern
You are viewing a single comment's thread. Return to all comments →
I think you forgot that str instance string. See the requirements. That's something they use to test this. IDK how.
I avoided str instance for purpose, because I didn't want to spoil whole solution