I just got into my 2nd programming subject but my prof just throws stuff at us that he didn't teach so I'm guessing that I need help from people because searching the internet's help ain't enough
So the output that I'm looking for is like this
Enter word : #$nsaei!
result = 2
Try something like this using a Scanner, converting the
String
input into a char array using toCharArray() and checking each char using isLetterOrDigit and checking if the character is not in"AEIOUaeiou"
using indexOf() and therefore not a vowel:Try it here!