Exercise Questions
Vowel Counter
Assume that only "aeiou"
are your vowels, create a program that counts the number of vowels in a given String.
Palindrome Checker
Write a program that checks if the given string is a palindrome. Assume that the string will only contain lowercase alphabetical characters.
Example:
tacocat
is a palindrome.
tacodog
is not a palindrome
Sort an Array
After creating a random array of integers, write a program that can sort it from least to greatest.
Example:
{3,1,4,1,5,9}
becomes {1,1,3,4,5,9}
List of Factors
Create a program that creates an ArrayList of factors of a given inputted integer.
Remove Duplicates
Create a program that analyzes an ArrayList of numbers and removes any duplicates within the list except for the very first occurrence of that value.
Last updated