- Fork this Repository
- fork this repository to your personal github account
- clone your
forked
repository to your local machine - Write the code to make all the tests pass. See below for instructions.
- MAKE SURE YOUR CODE COMPILES
- Run the tests to verify your code
git add .
to add files you want to commitgit commit -m "commit message"
to commit your changesgit push
your staged files to your remote repository- submit a
pull request
which compares mymaster
to yourmaster
- In this project there are 3 Classes to be completed
MathUtilities
StringUtilities
LoopFun
- Within each class are several methods which must be defined to pass test cases.
- Each method has a respective Test class.
- For example:
MathUtilities.add
can be tested by running theMathUtilitiesAddTest
class.MathUtilities.half
can be tested by running theMathUtilitiesHalfTest
class.StringUtilities.reverse
can be tested by running theStringUtilsReverseTest
class.
- Ensure all test cases in the classes prefixed with
MathUtilities
pass.- e.g. -
MathUtilitiesAddTest
,MathUtilitiesHalfTest
- e.g. -
- All the methods have been stubbed out for you in the
MathUtilities
class. - Each of the methods have a comment above it to describe the expected behavior.
- View the test cases to see examples of input and expected outputs.
int add(int num1, int num2)
double add(double num1, double num2)
double half(int number)
boolean isOdd(int number)
int square(int number)
- Ensure all test cases in the classes prefixed with
StringUtils
pass. - All the methods have been stubbed out for you in the
StringUtilities
class. - Each of the methods have a comment above it to describe the expected behavior.
- View the test cases to see examples of input and expected outputs.
Character getMiddleCharacter(String word)
String removeCharacter(String value, char charToRemove)
String getLastWord(String value)
String concatenate(String baseValue, String valueToBeAdded)
String reverse(String valueToBeReversed)
- Ensure all test cases in the classes prefixed with
LoopFun
pass. - All the methods have been stubbed out for you in the
LoopFun
class. - Each of the methods have a comment above it to describe the expected behavior.
- View the test cases to see examples of input and expected outputs.
int factorial(int number)
String acronym(String phrase)
String encrypt(String word)