Simple way to check if character is not from a string?

String.contains() will help you.
It’s a library of JAVA not a tool 😉

String delims = " \t*+-/()[]"
    char x="https://stackoverflow.com/";
    if(!delims.contains(Character.toString(x))) //not contains
    {
       do this
    }

Browse More Popular Posts

Leave a Comment