Git Product home page Git Product logo

lab-bucket-list's Introduction

Image description

ProGrad Lab | Bucket List

A Quick Introduction

Time to make your travel bucket list. Go ahead & follow the progressions to finish this up.

What should you do

Fork this repo
Clone this repo
Practice Java basics - operators, conditions, loops, class and object

How To Submit

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.

Instructions

  1. Do not modify the entire code.
  2. Edit the code as per the instructions.
  3. Go to Java Resources -> src folder.
  4. You will have 3 packages src/controller,src/model and src/utility.
  5. Once the progressions are completed, follow the instructions to run the application and test your code.

Testing

  1. Right click on your project and then run as - Junit.

Run the Project

  1. Right click on the project.
  2. Go to Run as -> Run on server.
  3. You can check the output in eclipse browser or in your browser.

Input Format

  1. There are three stages
  2. In stage - 1, there are 3 String inputs.
  3. In stage - 2, there are 3 String inputs.
  4. In stage - 3, there are 3 String inputs.

Output Format

1 Set of list,set and map operations on the list.

Progression - 1

  1. Create a class called TouristPlace inside model package.
  2. Include appropriate getters and setters
  3. Include 3 argument constructor. The order in which the arguments are passed is name, destination and rank of type String.

Progression - 2

  1. Create a class called ListOperations inside service package with the following methods.
    • public List add(TouristPlace places)
    • public List remove()
    • public Object sortByDestination(List places)
    • public Object sortByRank(List places)
    • public Object reset(List places)
  2. Use lamda operations to sort.
  3. The return type of all the methods are list.

Progression - 3

  1. 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)
  2. Use lamda operations to sort.
  3. The return type of all the methods are map.

Progression - 4

  1. Create a class called SetOperations inside service package with the following methods.
    • public HashSet add(TouristPlace places)
    • public HashSet remove()
    • public Object sortByDestination(HashSet places)
    • public Object sortByRank(HashSet places)
    • public Object reset(HashSet places)
  2. Use lamda operations to sort.
  3. The return type of all the methods are set.

Happy Coding ProGrad ❤️

lab-bucket-list's People

Contributors

agarwalprashasti avatar coder-venkateshs avatar prograd-org avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.