Write a program that prompts the user to enter a letter and check whether the letter is a vowel or consonant.
Breaking it down
Once the user has inputted a character, we will convert the String into a Instream by calling value.chars(). Next using a IntPredicate that checks if character is a vowel we check if any of the values equal a vowel by using Stream.anyMatch(). Something to note, you may consider scrubbing the input value as a user could enter any number of chars, vowels or consonant and anyMatch would return true.