Skip to content

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!

Notifications You must be signed in to change notification settings

Shubh2-0/Sprint-1-Topics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

linkedinmail-mewhatsapp-me


Feel free to explore each project in detail, contribute, and learn from the code provided. Happy coding! 😊👩‍💻👨‍💻

About

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!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages