Skip to content

Latest commit

 

History

History
61 lines (49 loc) · 1.71 KB

README.md

File metadata and controls

61 lines (49 loc) · 1.71 KB

Java Quiz: Week 10, Day 3

Overview

  • This quiz has 2 sections:
    1. fundamentals
      • StringEvaluator
      • PalindromEvaluator
    2. object orientation
      • PalindromeObject
      • StringAssembler
      • StringEvaluatorObject


Section 1 - Fundamentals

PalindromeEvaluator

  • Description
    • The purpose of this class is to evaluator palindromes.
    • A palindrome is a word or phrase that is spelled the same forwards and backwards.
      • the word racecar is an example of a palindrome
  • Methods to Complete
    • String reverseString(String str)
    • Boolean isPalindrome(String str)
    • String[] getAllPalindromes(String str)

StringEvaluator

  • Description
    • The purpose of this class is to create a utility class for String
  • Methods to Complete
    • String[] getAllSubstrings(String string)
    • String[] getCommonSubstrings(String string1, String string2)
    • String[] getLargestCommonSubstring(String string1, String string2)

Section 2 - Object Orientation

PalindromeObject

  • Description
    • The purpose of this class is to create an object capable of evaluating palindromes.
  • Methods to Complete
    • String reverseString()
    • Boolean isPalindrome()
    • String[] getAllPalindromes()

StringAssembler

  • Description
    • The purpose of this class is to create a wrapper class for StringBuilder
  • Methods to Complete
    • StringAssembler append(String string)
    • String append()

StringEvaluatorObject

  • Description
    • The purpose of this class is to create a wrapper object for StringEvaluator
  • Methods to Complete
    • String[] getAllSubstrings()
    • String[] getCommonSubstrings(String string2)
    • String[] getLargestCommonSubstring(String string2)