Exercise Questions

  1. Vowel Counter

Assume that only "aeiou" are your vowels, create a program that counts the number of vowels in a given String.

  1. 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

  1. 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}

  1. List of Factors

Create a program that creates an ArrayList of factors of a given inputted integer.

  1. 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