- Objective - To create an
NameEvaluator
which is capable of identifying valid-user-names. - Purpose
- To establish familiarity with
- Control Flow
- Conditionals
Scanner
object
- To establish familiarity with
- Description
- You are provided with a java class named
NameEvaluator
- Your objective is to complete the
run
method by following the line-by-line comments describing the algorithm to be implemented - In short, our objective is:
- Write a program which prompts the user to input his/her name.
- The program should greet users whose names are 'Alice' and 'Bob'.
- Ensure that all test cases in
src.test.com.github.perscholas
pass with 100% success rate.
- You are provided with a java class named
- To fork the project, click the
Fork
button located at the top right of the project.
- Navigate to your github profile to find the newly forked repository.
- Copy the URL of the project to the clipboard.
- Clone the repository from your account into the
~/dev
directory.- if you do not have a
~/dev
directory, make one by executing the following command:mkdir ~/dev
- navigate to the
~/dev
directory by executing the following command:cd ~/dev
- clone the project by executing the following command:
git clone https://github.com/${MYUSERNAME}/${NAMEOFPROJECT}
- if you do not have a
- Ensure that the tests run upon opening the project.
- You should see
Tests Failed: ${no_tests} of ${no_tests} tests
- You should see
- from a terminal navigate to the root directory of the cloned project.
- from the root directory of the project, execute the following commands:
- add all changes
git add .
- commit changes to be pushed
git commit -m 'I have added changes'
- push changes to your repository
git push -u origin master
- add all changes
- from the browser, navigate to the forked project from your github account.
- click the
Pull Requests
tab. - select
New Pull Request