You are viewing a single comment's thread. Return to all comments →
just use if(flag==false) { System.out.println("java.lang.Exception: height and breadth must be positive"); }
thats it. :)
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 Static Initializer Block
You are viewing a single comment's thread. Return to all comments →
just use if(flag==false) { System.out.println("java.lang.Exception: height and breadth must be positive"); }
thats it. :)