hwo to check if character existss in a string in java code example Example: java if string contains character if (string.contains(character)