Detect the Email Addresses

  • + 1 comment

    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 ?