Giter VIP home page Giter VIP logo

shubh2-0 / sprint-1-topics Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 0.0 57 KB

Sprint 1-focused repository covering functional interfaces, lambda expressions, inbuilt functional interfaces in Java, and collections framework problems. Projects provide practical implementations and examples. Enhance your functional programming skills and Java development knowledge. Explore, code, and learn. Happy coding!

Java 100.00%
collections-framework functional-interfaces lambda-expressions lambda-functions practical-exercises problem-solving problem-statements inbuilt- inbuilt-functional-interfaces-in-java

sprint-1-topics's Introduction

Sprint-1-Topics ๐Ÿš€

This repository contains the code and resources for Sprint 1, which covers the following topics:

  • Functional Interface
  • Lambda Expression
  • Inbuilt Functional Interfaces in Java
  • Collections Framework Problems

Projects

Problem 1

Description: This project addresses a specific problem related to functional interfaces. It demonstrates how to implement and utilize them effectively. ๐Ÿ’ก

Solution:

  • What is Functional Programming and Functional Interface โ“
  • Implementations of Functional Interfaces:
    • Predicate โœ”๏ธ
    • Consumer ๐Ÿ–จ๏ธ
    • Supplier ๐Ÿ›๏ธ
    • Function<String, Product> โ†”๏ธ

Problem 2

Description: In this project, we dive into lambda expressions and explore their practical applications. It showcases various examples to illustrate their usage. ๐Ÿ“

Solution:

  • Bean classes: Student and Employee ๐Ÿ“š
  • List of Student objects ๐Ÿ“‹
  • Transformation of Students to Employees using Stream API and map function ๐Ÿ”„
  • Sorting Employees by salary in descending order using Lambda Expression ๐Ÿ“‰
  • Printing both Employee's List and Original Student's List using Lambda Expression ๐Ÿ–จ๏ธ

Problem 3

Description: The Problem 3 project focuses on using stream API and lambda expressions to process a list of Student names. โœจ

Solution:

  • Create a List of 10 Student names using stream API ๐Ÿ“
  • Filter and transform names with even length to uppercase โœ…
  • Sort the transformed List in descending order using Lambda Expression ๐Ÿ“‰
  • Print both original and transformed List using Lambda Expressions ๐Ÿ–จ๏ธ

Problem 4

Description: This project explains the features of the Stream API in Java and discusses some of the intermediate and terminal methods of the Stream object. ๐ŸŒŠ

Solution:

  • Features of Stream API โœจ
  • Intermediate methods example โš™๏ธ
  • Terminal methods example ๐Ÿ

Problem 5

Description: The Problem 5 project explains the concept of method reference and demonstrates how to refer to static methods, non-static methods, and constructors using method references. ๐Ÿ”—

Solution:

  • Explanation of Method Reference โ“
  • Static method reference example โšก
  • Non-static method reference example ๐Ÿƒโ€โ™€๏ธ
  • Constructor reference example ๐Ÿญ

Problem 6

Description: This project focuses on implementing a class named GroceryItems with customized sorting using the Comparator interface. ๐Ÿ›’

Solution:

  • GroceryItems class with price, name, and usedFrequency data members ๐Ÿ“ฆ
  • Definition of Comparator to sort GroceryItems ๐Ÿ”€
  • Storing objects of GroceryItems in TreeSet with natural order and custom order defined by Comparator ๐ŸŒŸ

๐Ÿ“ฌ Contact

If you want to contact me, you can reach me through below handles.

linkedinโ€ƒ mail-meโ€ƒ whatsapp-meโ€ƒ


Feel free to explore each project in detail, contribute, and learn from the code provided. Happy coding! ๐Ÿ˜Š๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

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.