15 Oct Saturday 14:00 Java Homework 10.12
Question 1:
Input a string using scanner and print the number of vowels and consonants in the sting.
Sample Input:
bcda
Sample Output:
vowels: 1
consonant : 3
Question 2:
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:
aba
Sample Output 1:
It is a palindrome
Sample Input 2:
bcde
Sample Output 2:
It is not a palindrome
Sorry, the comment form is closed at this time.