{"id":20258862,"url":"https://github.com/andreie91/java-lambda-expressions-exercises","last_synced_at":"2025-11-29T15:03:13.168Z","repository":{"id":177727204,"uuid":"645865607","full_name":"AndreiE91/Java-Lambda-Expressions-Exercises","owner":"AndreiE91","description":"A collection of problems which are solved with the use of lambda expressions, such as parsing a file and only saving objects which meet certain criteria.","archived":false,"fork":false,"pushed_at":"2024-02-06T12:28:09.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T18:44:26.298Z","etag":null,"topics":["java","lambda-expressions","parsing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreiE91.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-26T16:09:24.000Z","updated_at":"2024-02-06T12:28:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"3088bc8d-45b8-4a5e-a422-45999fd0ad6e","html_url":"https://github.com/AndreiE91/Java-Lambda-Expressions-Exercises","commit_stats":null,"previous_names":["andreie91/pt2023_30423_eminovici_andrei_assignment_4"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndreiE91/Java-Lambda-Expressions-Exercises","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiE91%2FJava-Lambda-Expressions-Exercises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiE91%2FJava-Lambda-Expressions-Exercises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiE91%2FJava-Lambda-Expressions-Exercises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiE91%2FJava-Lambda-Expressions-Exercises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreiE91","download_url":"https://codeload.github.com/AndreiE91/Java-Lambda-Expressions-Exercises/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiE91%2FJava-Lambda-Expressions-Exercises/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27355550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-29T02:00:06.589Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","lambda-expressions","parsing"],"created_at":"2024-11-14T11:12:00.399Z","updated_at":"2025-11-29T15:03:13.143Z","avatar_url":"https://github.com/AndreiE91.png","language":"Java","readme":"# Lambda Expressions in Problem Solving\n\n![Lambda_Expressions](images/Lambda_img.png)\n\n## Overview\n\nThis repository contains a collection of problems solved using lambda expressions in various scenarios, primarily focusing on parsing files and filtering CSV objects based on specific criteria. Lambda expressions provide concise syntax for writing inline functions, making them particularly useful for tasks involving data manipulation and filtering.\n\n## Problem Statements\n\n### Problem 1: CSV File Parsing and Filtering\n\n#### Description:\n- Given a CSV file containing data records, parse the file and filter objects based on specific criteria.\n- Criteria may include conditions such as filtering records based on certain attributes, values, or patterns.\n\n#### Solution Approach:\n- Utilize lambda expressions to define filtering criteria inline.\n- Use Java's Stream API to read and process data from the CSV file.\n- Apply lambda expressions as predicates to filter objects that meet the specified criteria.\n  \n#### Example Code:\n```java\n// Sample code demonstrating CSV file parsing and filtering using lambda expressions\npublic class CsvParser {\n    public static void main(String[] args) {\n        // Read CSV file\n        List\u003cCSVObject\u003e csvObjects = readCsvFile(\"data.csv\");\n        \n        // Filter CSV objects based on criteria using lambda expressions\n        List\u003cCSVObject\u003e filteredObjects = csvObjects.stream()\n                                                    .filter(obj -\u003e obj.getCriteria().matches(\"regex pattern\"))\n                                                    .collect(Collectors.toList());\n        \n        // Process filtered objects\n        filteredObjects.forEach(System.out::println);\n    }\n}\n```\n\n### Problem 2: Display only names of people who work during certain hour interval and drink coffee at breakfast\n\nSolution to similar type of problems available in code, sample data file also available in repository files as `Activities.txt`\n\n## Usage\n\nTo run the sample code, simply execute the `Main` class. Ensure you have Java installed on your system.\n\n## Cloning Instructions\n\nTo clone this repository, run the following command in your terminal:\n\n```bash\ngit clone https://github.com/AndreiE91/Java-Lambda-Expressions-Exercises.git\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreie91%2Fjava-lambda-expressions-exercises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreie91%2Fjava-lambda-expressions-exercises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreie91%2Fjava-lambda-expressions-exercises/lists"}