Time to make your travel bucket list. Go ahead & follow the progressions to finish this up.
Fork this repo
Clone this repo
Practice Java basics - operators, conditions, loops, class and object
Upon completion, run the following commands:
git add .
git commit -m "ProGrad ID"
git push origin master
And finally, create a pull request so your ProGrad Mentor (PM) can review your work.
- Do not modify the entire code.
- Edit the code as per the instructions.
- Go to Java Resources -> src folder.
- You will have 3 packages src/controller,src/model and src/utility.
- Once the progressions are completed, follow the instructions to run the application and test your code.
- Right click on your project and then run as - Junit.
- Right click on the project.
- Go to Run as -> Run on server.
- You can check the output in eclipse browser or in your browser.
- There are three stages
- In stage - 1, there are 3 String inputs.
- In stage - 2, there are 3 String inputs.
- In stage - 3, there are 3 String inputs.
1 Set of list,set and map operations on the list.
- Create a class called TouristPlace inside model package.
- Include appropriate getters and setters
- Include 3 argument constructor. The order in which the arguments are passed is name, destination and rank of type String.
- Create a class called ListOperations inside service package with the following methods.
- public List add(TouristPlace places)
- public List remove(TouristPlace places)
- public Object sortByDestination(List places)
- public Object sortByRank(List places)
- public Object reset(List places)
- Use lamda operations to sort.
- The return type of all the methods are list.
- Create a class called MapOperations inside service package with the following methods.
- public Map add(TouristPlace places)
- public Map sortRandomly(TouristPlace places)
- public Map sortInEntryOrder(HashMap places)
- public Map sortAlphabetically(HashMap places)
- public Object reset(HashMap places)
- public HashMap remove(TouristPlace places)
- Use lamda operations to sort.
- The return type of all the methods are map.
- Create a class called SetOperations inside service package with the following methods.
- public HashSet add(TouristPlace places)
- public HashSet remove(TouristPlace places)
- public Object sortByDestination(HashSet places)
- public Object sortByRank(HashSet places)
- public Object reset(HashSet places)
- Use lamda operations to sort.
- The return type of all the methods are set.
Happy Coding ProGrad ❤️