containsCharacter() method

Write the definition of the method:

public static boolean hasCharacter(String input, char character)

that takes a string and a character as input and returns true if the string contains at least one occurrence of the character and false otherwise. Upload your .java file that contains the hasCharacter() method.

This material was created by Raffi Khatchadourian and published freely under a Creative Commons Attribution 4.0 license.