GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - spdpiyush/Java-Example: This repository contains the basic & advance level examples related to Java Programming Languages.

BranchesTags
Open more actions menu

Latest commit

 

History

75 Commits
75 Commits

Folders and files

NameName
Last commit message
Last commit date
Modern-Java-Examples/src/com/learn
Modern-Java-Examples/src/com/learn
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

Java-Example

This repository contains the basic & advance level examples related to Java Programming Languages.

Modern Java Examples

  • ImperativeVsDeclarative
  • Lambdas
  • Functional Interface
    • Consumer
    • BiConsumer
    • Predicate
    • Predicate + Consumer
    • BiPredicate
    • Function
    • BiFunction
    • UnaryOperator
    • BinaryOperator
    • Supplier
  • Method Reference
    • Consumer Method Reference
    • Refactoring Method Reference
  • Constructor Reference
  • Lambdas and Local Variables
  • Streams
    • Stream Example
    • Collection vs Stream
  • Streams API Operations
    • map()
    • flatMap()
    • distinct(), count() and sorted()
    • sort() using Comparator
    • filter()
    • reduce()
    • map() + filter() + reduce()
    • max and min using reduce()
    • skip() and limit()
    • allMatch(), anyMatch() and noneMatch()
    • findFirst() and findAny()
    • of(), iterate() and generate()
  • Numeric Streams
    • range(), rangeClosed() and count()
    • sum(), max(), min() and average()
    • boxing, unboxing and mapToInt()
    • mapToObj(), mapToLong() and mapToDouble()
  • Stream Terminal Operations
    • joining()
    • counting()
    • mapping()
    • minBy() and maxBy()
    • summingInt() and averagingInt()
    • groupingBy()
    • groupingBy() - with maxBy(), minBy() and collectingThen()
    • partitioningBy()
  • parallelStream
    • parallel Stream Example & Performance
    • sequential & parallel Stream Comparison
    • sequential & parallel stream unboxing Performance
    • parallel stream mutating variable
  • Optional
    • Optional Example
    • ofNullable(), of() and empty()
    • orElse(), orElseGet() and orElseThrow()
    • ifPresent() and isPresent()
    • filter(), map() and flatMap()
  • Defaults
    • default methods
    • sort using Comparator
    • Comparator: nullsFirst and nullsLast
    • default and static methods in Interface
    • default method Multiple Inheritance
    • Interfaces with same method signature Conflicts
  • New Date/Time API's
    • LocalDate, LocalTime and LocalDateTime
      • LocalDate
        • Modifying LocalDate
        • Additional Operation on LocalDate
      • LocalTime

Contributing

This repository is a personal project, but we welcome pull requests to keep the Java coding style up to date with new concepts. Additionally, feel free to fork the repository and modify it as you see fit.

About

This repository contains the basic & advance level examples related to Java Programming Languages.

Topics

functional-programmingfunctionalinterfacesjavajava-8java-lambdasjava8-stream

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.