check if string has delimiter java code example Example: java if string contains character if (string.contains(character)