All Classes and Interfaces

Class
Description
Demonstrates the use of Java records for immutable, compact data carrier classes.
 
Class: AnonymousInnerClassExample ----------------------------------- Demonstrates how to use an Anonymous Inner Class in Java.
Demonstrates the use of BiFunction and its chaining with Function.
Demonstrates the use of Java 9 collection factory methods.
Demonstrates advanced usage of Collectors in Java Streams, particularly how to use groupingBy combined with mapping to transform values inside grouped collections.
Demonstrates basic usage of Collectors in Java Streams.
 
Demonstrates basic usage of CompletableFuture for asynchronous programming in Java 8+.
This class demonstrates advanced CompletableFuture features: chaining, combining, and exception handling.
Demonstrates the use of Consumer and its chaining with andThen().
Demonstrates the built-in Consumer<T> functional interface.
 
Demonstrates core features of the Java 8 Date and Time API (java.time package).
Example class that implements MyInterface to demonstrate default and static methods.
Demonstrates the use of the Fork/Join framework to sum an array of integers in parallel.
Demonstrates usage of Java 11's HttpClient for HTTP requests.
Class: LambdaExample ---------------------- Demonstrates how Java 8 Lambda expressions simplify the creation of functional interface implementations.
Class: LambdaWithMultipleParametersExample ------------------------------------------- Demonstrates how Java 8 Lambda expressions can be used with multiple parameters.
This class demonstrates the use of lambda expressions with parameters in Java.
 
Demonstrates the use of method references in Java, and contrasts them with lambda expressions.
Demonstrates Java 7's multi-catch exception handling.
This example demonstrates how to walk a directory tree using the NIO.2 Files.walk method.
Demonstrates Java 7's NIO.2 file API (Path, Files, etc.) Shows how to create, write, read, and delete files using the modern API.
 
Demonstrates the basics of using Optional in Java.
 
Demonstrates pattern matching for instanceof (Java 16+).
Demonstrates both the classic instanceof/cast approach and the modern pattern matching for switch (Java 21+) using a classic class hierarchy.
This demo shows pattern matching for switch in Java 17+ using sealed interfaces and records.
Demonstrates Java 21+ pattern matching for switch with enums.
Demonstrates Java 21+ pattern matching for switch with nested record patterns.
Demonstrates the use of Predicate and its common operations.
Java printf() Cheat Sheet ------------------------- Introduced in Java 5 (java.util.Formatter API).
Demonstrates the use of private and private static methods in interfaces (Java 9+).
Demonstrates Java 17+ sealed classes, which restrict which classes can extend a superclass.
 
 
 
 
Demonstrates SequencedCollection in Java 21 using an ArrayList.
Demonstrates SequencedMap in Java 21 using a LinkedHashMap.
Demonstrates SequencedSet in Java 21 using LinkedHashSet.
Demonstrates the use of Java records for immutable, compact data carrier classes.
A record is a special data carrier class in Java that is immutable and compact.
A simple static file server using Java 18's built-in HttpServer.
Demonstrates advanced sorting techniques with Java Streams and Comparators.
Demonstrates Java 9 Stream API improvements: takeWhile: takes elements from a stream while a condition holds. dropWhile: drops elements from a stream while a condition holds, then takes the rest. ofNullable: creates a stream of zero or one element, safely handling nulls.
 
 
 
 
Demonstrates the basics of Java Streams, including usage of Predicate, Function, and Consumer for filter, map, and forEach operations, respectively.
Demonstrates the use of Java 8 Streams and functional interfaces to process a list of names.
Demonstrates the use of Java 8 Streams to filter, transform, sort, and collect results into a List.
Demonstrates counting, finding, and matching operations with Java 8 Streams.
Demonstrates the use of distinct, limit, and skip operations with Java Streams.
Demonstrates the use of parallel streams in Java.
 
Demonstrates new String methods added in Java 11: isBlank() lines() strip(), stripLeading(), stripTrailing() repeat(int)
Demonstrates Java 7's feature: using Strings in switch statements.
Demonstrates the use of the built-in functional interface Supplier<T>.
Demonstrates Java 14+ switch expressions with concise syntax, multiple case labels, returning values, and no accidental fall-through.
Utility class for converting temperatures between Celsius and Fahrenheit.
 
Demonstrates Java text blocks (multi-line string literals, introduced in Java 13+ and finalized in Java 15+).
Demonstrates and compares classic (platform) threads and virtual threads in Java 21+.
Demonstrates joining and checking the status of both classic (platform) threads and virtual threads in Java 21+.
Demonstrates Java 7's try-with-resources statement for automatic resource management.
Demonstrates the use of var in lambda parameters introduced in Java 11.
Demonstrates the use of the var keyword for local variable type inference (Java 10+).
 
Demonstration of Virtual Threads in Java 21+.