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.
Thank you
that helped me , but can you explain why
if(s.startsWith("-")) alone doesnt give me the right output ?.
in your code actually even if I didnt give that,and if only given Double.valueOf(s) also will work na .
So please make me clarify why the first method didnt work ?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Detect the Email Addresses
You are viewing a single comment's thread. Return to all comments →
Thank you that helped me , but can you explain why
if(s.startsWith("-")) alone doesnt give me the right output ?. in your code actually even if I didnt give that,and if only given Double.valueOf(s) also will work na . So please make me clarify why the first method didnt work ?