FUNCTIONS(METHODS) Write a Java method to count the number of digits in an integer with the value 2. The integer may be assumed to be nonnegative.
FUNCTIONS(METHODS) Write a Java method that accepts three integers and checks whether they are consecutive or not. Returns true or false.
FUNCTIONS(METHODS) Write a Java method that accepts three integers and returns true if one is the middle point between the other two integers, otherwise false.
FUNCTIONS(METHODS) Write a Java method that checks whether all the characters in a given string are vowels (a, e, i, o, u) or not. Return true if each character in the string is a vowel, otherwise return false.
FUNCTIONS(METHODS) Write a Java method to display the middle character of a string. Note: a) If the length of the string is odd there will be two middle characters. b) If the length of the string is even there will be one middle character.