15 Oct Saturday 14:00 Java Homework 10.12
Input a string using scanner and print the number of vowels and consonants in the sting.
consonant : 3
Input a string using scanner and check if the string is a palindrome.
e.g. aba is a palindrome because if you reverse it is still the same.
e.g. abba is a palindrome because if you reverse it is still the same.
Sample Input 1:
Sample Output 1:
It is a palindrome
Sample Input 2:
Sample Output 2:
It is not a palindrome