Skip to content

Code With Rupendra

  • Home
  • Java 8
  • Microservices
  • ReactJs
  • Design Patterns
Subscribe

java 8

Under this category I will put all java related blogs

Posted in
  • java 8
  • stream API

Write a program to list the persons whose age is greater than 18 (voter) and sort them by age.

Output:

by Rupendra Sharma•August 19, 2025August 19, 2025•0
Posted in
  • java 8
  • sorting

How to sort Employee object in java using lambda expression?

1- Sort by name (ascending) Output: 2- Sort by name (descending) Output: 3- Sort by name … How to sort Employee object in java using lambda expression?Read more

by Rupendra Sharma•August 15, 2025August 15, 2025•0
Posted in
  • java 8
  • sorting

How to Sort a List of Integers in Java Using Streams

Solution 1- Output Solution 2- Optimized Code using java 16+ Output ✅ Improvements Made: Original Code … How to Sort a List of Integers in Java Using StreamsRead more

by Rupendra Sharma•July 31, 2025July 31, 2025•0
Posted in
  • java 8

How does map() differ from a traditional loop for transforming elements?

The map() function and traditional loops (like for or while) both iterate over a sequence to … How does map() differ from a traditional loop for transforming elements?Read more

by Rupendra Sharma•March 23, 2025March 23, 2025•0
Posted in
  • java 8

What is map() in Java 8 Stream

In Java 8, map() is a method of the Stream interface used for transforming each element … What is map() in Java 8 StreamRead more

by Rupendra Sharma•March 23, 2025August 29, 2025•0
Posted in
  • java 8

Write a program to upper case the name of the Employee object.

Solution 1- Output : Solution 2- Improved version Output : Key changes:

by Rupendra Sharma•March 23, 2025July 31, 2025•0
Posted in
  • java 8

Convert a List of Strings to Uppercase

by Rupendra Sharma•March 23, 2025March 23, 2025•0
Posted in
  • java 8

What is the difference between map() and flatMap() in Java 8 Streams?

1. map() 2. flatMap() Great example! Let’s use an Employee class where: Example: Using map() and … What is the difference between map() and flatMap() in Java 8 Streams?Read more

by Rupendra Sharma•March 23, 2025April 3, 2025•0

Recent Posts

  • Useful anotation to build microservices
  • How to Enable Lombok in Spring Tool Suite (STS) 4.x Step by Step
  • How to set up an H2 database in microservices?
  • Does microservices architecture favor horizontal scaling or vertical scaling?
  • Write a program to list the persons whose age is greater than 18 (voter) and sort them by age.

Categories

  • Design Pattern
  • java 8
  • microservices
  • reactjs
  • sorting
  • stream API

About This Site

This may be a good place to introduce yourself and your site or include some credits.

Find Us

Address
123 Main Street
New York, NY 10001

Hours
Monday–Friday: 9:00AM–5:00PM
Saturday & Sunday: 11:00AM–3:00PM

Recent Posts

  • Useful anotation to build microservices
  • How to Enable Lombok in Spring Tool Suite (STS) 4.x Step by Step
  • How to set up an H2 database in microservices?
  • Does microservices architecture favor horizontal scaling or vertical scaling?
  • Write a program to list the persons whose age is greater than 18 (voter) and sort them by age.

About This Site

This may be a good place to introduce yourself and your site or include some credits.

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2025 Code With Rupendra.
Powered by WordPress and HybridMag.
  • Facebook
  • YouTube
  • Twitter
  • Home
  • Java 8
  • Microservices
  • ReactJs
  • Design Patterns

Code With Rupendra

  • Home
  • Java 8
  • Microservices
  • ReactJs
  • Design Patterns