aishwaryaneelakandan / Assignment

1 stars 1 forks source link

task0924 #1

Closed ravi-priya closed 3 years ago

ravi-priya commented 3 years ago

***Please push the code for slot1 before starting to slot2 and likewise for slot3

Slot 1 write these methods in Compare class( Compare.java) and a test for each in CompareTest.

  1. isEqual compares 2 strings and returns true if they are similar else false
  2. isEqualIgnoreCase case insensitive comparison of 2 strings and returns true if they are similar else false

Slot 2 write these methods in Compare class( Compare.java) and a test for each in CompareTest.

  1. isEven returns true if the passed number is even else false
  2. isOdd returns true if the passed number is odd else false

Slot 3 write these methods in Compare class( Compare.java) and a test for each in CompareTest.

  1. isPalindrome compares 2 strings and returns true if they are palindrome else false
  2. isAlpha checks and returns true if the string contains only alpha else true
aishwaryaneelakandan commented 3 years ago

Slot 1 https://github.com/aishwaryaneelakandan/Assignment/tree/master/Assignment/src

aishwaryaneelakandan commented 3 years ago

Slot 2 https://github.com/aishwaryaneelakandan/Assignment/tree/master/Assignment/src

aishwaryaneelakandan commented 3 years ago

Slot 3 https://github.com/aishwaryaneelakandan/Assignment/tree/master/Assignment/src