• Subset Sum Problem SubSet Sum Problem Solution using Knapsack

    Categories: Java || Java Examples || Dynamic programming/Recursion ||

    package dynamic.programing.knapsack;public class SubsetSumProblemKnapsack {//Subset Sum Problem-SubSet Sum Problem Solution using Knapsack public static void main(String[] args) {int arr[] = new

  • Knapsack top down dynamic programming using java

    Categories: Java || Java Examples || Dynamic programming/Recursion ||

    package dynamic.programing.knapsack;import java.util.Iterator;public class KnapsackTopDownDynamicProgramming {// Knapsack  top down dynamic programming  using java public static void ma

  • Sorting the Employees Salary in Each Department in Ascending Order

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in.emp;import java.util.ArrayList;import java.util.Comparator;import java.util.List;import java.util.Map;import java.util.stream.Collectors;import java.util.stream.Stream;public class E

  • Sorting the Employees Salary in Each Department in Descending Order

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in.emp;import java.util.ArrayList;import java.util.Comparator;import java.util.List;import java.util.Map;import java.util.stream.Collectors;import java.util.stream.Stream;public class E

  • Concatenate String array into single string

    Categories: Java || Java Examples || Java Design Pattern ||

    Concatenate String array into single stringpackage r4r.co.in;import java.util.stream.Collectors;import java.util.stream.Stream;public class ConcatenateStringArrayInSingleString {public static void mai

  • Find Customer staring with +91 mobile number

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    Find Customer staring with +91 mobile numberpackage r4r.co.in;import java.util.ArrayList;import java.util.List;import java.util.stream.Collectors;public class FindCustomerStartingWithMobileNumberExamp

  • Child and Parent overridden methods Throws checked exception

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.io.FileNotFoundException;public class A {public static void main(String[] args) throws Exception {// Child and Parent overridden methods Throws checked exception (like//

  • Child and Parent overridden methods Throws RuntimeException

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;public class A {public static void main(String[] args) {//Child and Parent overridden methods Throws RuntimeException (like ArrayIndexOutOfBoundsException)AP ap = new B();ap.display(

  • Java Class subclass interview coding questions

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;public class A {public static void main(String[] args) {// Java Class subclass interview coding questions //child class override parent method interview questionsAP ap = new B()

  • Printing the Number of Employees in Each Department using Java

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    Printing the Number of Employees in Each Department using Javapackage r4r.co.in;import java.util.ArrayList;import java.util.List;import java.util.Map;import java.util.stream.Collectors;public class Pr

  • Printing Average Age of Male and Female Employees using Java

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    Printing Average Age of Male and Female Employees using Javapackage r4r.co.in;import java.util.ArrayList;import java.util.List;import java.util.Map;import java.util.stream.Collectors;public class Prin

  • Finding Maximum Age of Employee using Java

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    Finding Maximum Age of Employee using Javapackage r4r.co.in;import java.util.ArrayList;import java.util.List;import java.util.Map;import java.util.stream.Collectors;public class FindingMaximumAgeOfEmp

  • Printing Employee Details by Age Criteria using Java

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    Printing Employee Details by Age Criteria using Javapackage r4r.co.in;import java.util.ArrayList;import java.util.List;import java.util.Map;import java.util.stream.Collectors;public class PrintingEmpl

  • Printing Names of All Departments from Employee Class using Java

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    Printing Names of All Departments from Employee Class using Javapackage r4r.co.in;import java.util.ArrayList;import java.util.List;import java.util.Map;import java.util.stream.Collectors;public class

  • Finding the Count of Male and Female Employees

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.ArrayList;import java.util.List;import java.util.Map;import java.util.stream.Collectors;public class CountMaleAndFemale {public static void main(String[] args) {//Fi

  • Grouping Employees by City and Age

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    Grouping Employees by City and Agepackage r4r.co.in;import java.util.ArrayList;import java.util.List;import java.util.Map;import java.util.stream.Collectors;public class EmployeeGroupByCityAndAge {pub

  • Employee Highest salary in each department using Java

    Categories: Java || Java Examples ||

    Employee Highest salary in each department using Javapackage r4r.co.in;import java.util.ArrayList;import java.util.Comparator;import java.util.LinkedHashMap;import java.util.List;import java.util.Map;

  • Sort highest salary in each department

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    Sort highest salary in each departmentpackage r4r.co.in;import java.util.ArrayList;import java.util.List;import java.util.Map;import java.util.stream.Collectors;public class GroupByDeparmentSortedBySa

  • Find first repeated character in a string

    Categories: Java 8(JDK1.8) || Java Examples ||

    package r4r.co.in;import java.util.LinkedHashMap;import java.util.Map;import java.util.Map.Entry;import java.util.Objects;import java.util.function.Function;import java.util.stream.Collectors;import j

  • Travel Tips for First-Time LRT Commuters

    Categories: Game ||

    Content Image

    Riding around a new city is always an adventure. It must be addressed, especially when riding an unfamiliar public means of travel like the Light Rail Transit. Knowing the LRT system will guide you in

  • Java 8 Stream String Null Or Empty Filter

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.Arrays;import java.util.Objects;import java.util.function.Predicate;import java.util.stream.Stream;public class NnonNullExamples {public static void main(String[] ar

  • 26 Java 8 Programs using Lambda Expression and Stream

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    26 Java 8 Programs using Lambda Expression and Stream Write a program to append char in char ex-input- {A, B, C} output->[A_X, B_Y, C_Z] Write a Java 8

  • Course on Computer Concepts (CCC) MCQs

    Categories: CCC ||

    Q.1. Small networking making up internet and also having small no. of computers within is known as _____? Host Address Sub-domain None of these   Answer: A. Host   Q.2. One how s

  • Given a list of integers, separate odd and even numbers

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.List;import java.util.Map;import java.util.stream.Collectors;import java.util.stream.Stream;public class SeparateOddAndEvenNumbers {public static void main(String[]

  • Reports and Indices (MCQs)

    Categories: Others ||

    Q.1. Recently, which institution released the ‘Aging well in Asia: Asian Development Policy Report’? (A) World Bank (B) Asian Development Bank (ADB) (C) European Investment Bank (EIB)

  • Find Last duplicate character of given string using Java 8

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.Map;import java.util.function.Function;import java.util.stream.Collectors;public class Test123 {public static void main(String[] args) {// Find Last duplicate charac

  • News Locations (MCQs)

    Categories: Others ||

    Q.1. Utkela Airport has been inaugurated in which state/UT? [A] Odisha [B] West Bengal [C] Assam [D] Arunachal Pradesh   Ans. [A] Odisha   Q.2. Umiam lake, which was seen in the news

  • Find duplicate elements with its count using Java 8

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.Arrays;import java.util.Collections;import java.util.List;import java.util.Map;import java.util.function.Function;import java.util.stream.Collectors;public class Dup

  • How to check if list is empty in Java 8 using Optional

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.Arrays;import java.util.List;import java.util.Objects;import java.util.Optional;public class CheckListIsEmptyOrNot {public static void main(String[] args) {//How to

  • Write a Program to find the Maximum element in an array

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.Arrays;import java.util.Comparator;public class MaximumOfGivenArray {public static void main(String[] args) {//Write a Program to find the Maximum element in an arra

  • count of each character in a String using Java 8

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.HashMap;import java.util.LinkedHashMap;import java.util.Map;import java.util.function.Function;import java.util.stream.Collectors;import java.util.stream.Stream;publ

  • How to print keys & values of a Map using Java 8

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.HashMap;import java.util.Map;import java.util.stream.Stream;public class MapExamplesJava8 {public static void main(String[] args) {// How to print keys & values

  • How to iterate and modify values in a Map using Java 8

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.HashMap;import java.util.Map;public class IterateAndmodifyValuesInMapUsingJava8 {public static void main(String[] args) {// How to iterate and modify values in a Map

  • How to find next, previous, tomorrow ,yesterday date using Java 8

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.time.LocalDate;public class FindTodayTommrowYesterdayUsingJava8 {public static void main(String[] args) {// TODO Auto-generated method stub//How to find next/previous(tom

  • How to sort a list of strings by length using Lambda expressions

    Categories: Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.List;import java.util.stream.Collectors;import java.util.stream.Stream;public class ShortByLengthOfString {public static void main(String[] args) {// How to sort a l

  • Write a program to sum an array

    Categories: Java 9 || Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.stream.Collectors;import java.util.stream.Stream;public class SumAnArray {//Write a program to sum an arraypublic static void main(String[] args) {  Integer[] i

  • Write a program to sum an array without using the sum method

    Categories: Java 9 || Java 8(JDK1.8) || Java || Java Examples ||

    package r4r.co.in;import java.util.stream.Stream;public class SumWithoutUsingSumMenthod {public static void main(String[] args) {//Write a program to sum an array without using the sum methodInteger[]

Top Blogs
The Influence of Slot Game Providers on Your Gaming Experience Published at:- Subset Sum Problem SubSet Sum Problem Solution using Knapsack Published at:- Knapsack top down dynamic programming using java Published at:- Sorting the Employees Salary in Each Department in Ascending Order Published at:- Sorting the Employees Salary in Each Department in Descending Order Published at:- Concatenate String array into single string Published at:- Find Customer staring with +91 mobile number Published at:- Child and Parent overridden methods Throws checked exception Published at:- Child and Parent overridden methods Throws RuntimeException Published at:- Java Class subclass interview coding questions Published at:- Printing the Number of Employees in Each Department using Java Published at:- Printing Average Age of Male and Female Employees using Java Published at:- Finding Maximum Age of Employee using Java Published at:- Printing Employee Details by Age Criteria using Java Published at:- Printing Names of All Departments from Employee Class using Java Published at:- Finding the Count of Male and Female Employees Published at:- Grouping Employees by City and Age Published at:- Employee Highest salary in each department using Java Published at:- Sort highest salary in each department Published at:- 5 Family Bonding Activities You Can Do Offline This -Ber Months Published at:- Find first repeated character in a string Published at:- Travel Tips for First-Time LRT Commuters Published at:- sum ,min ,max etc example using reduce method using Java 8 Stream API Published at:- Java 8 Stream String Null Or Empty Filter Published at:- 26 Java 8 Programs using Lambda Expression and Stream Published at:- java 8 using lambda expression and stream api | Java 8 Programs using Lambda Expression and Stream Published at:- Singleton Design Pattern and 7 Ways to Implement It 4 Ways to Break Singleton Design Pattern Published at:- The Legends of Manchester United: 10 Greatest Players in Manchester United History Published at:- Course on Computer Concepts (CCC) MCQs Published at:- Given a list of integers, separate odd and even numbers Published at:- Reports and Indices (MCQs) Published at:- Find Last duplicate character of given string using Java 8 Published at:- News Locations (MCQs) Published at:- Find duplicate elements with its count using Java 8 Published at:- How to check if list is empty in Java 8 using Optional Published at:- Write a Program to find the Maximum element in an array Published at:- count of each character in a String using Java 8 Published at:- How to print keys & values of a Map using Java 8 Published at:- How to iterate and modify values in a Map using Java 8 Published at:- How to find next, previous, tomorrow ,yesterday date using Java 8 Published at:- How to remove all duplicates from an array of integers in Java using Java 8 Published at:- How to count the number of occurrences of a given word in a list of strings using Java 8 Published at:- Write a Java program To create a map from a array of strings where the key is the string and the value is its length Published at:- How to filter and collect a list of strings that start with a specific letter using Java 8 Stream Published at:- How to sort a list of strings by length using Lambda expressions Published at:- Find the maximum value in a list of integers using Stream & Method Reference Published at:- Drop all while condition not meet dropWhile(),dropWhile(Predicate<T> predicate) Published at:- Write a program to sum an array Published at:- Write a program to sum an array without using the sum method Published at:- Write a program to append char in char ex-input- {A, B, C} output->[A_X, B_Y, C_Z] Published at:- Write a program to find the only duplicate count list in the List Published at:- How to increment salary by 2%, 5%, etc. Using java Published at:- Filter employees by age set senior if age is greater than 30 in Java 8 Lamda steam Published at:- Write a Java 8 program to get the last element of an array string/object Published at:- Filter employees by age in Java 8 Lamda steam Published at:- Write a Java 8 program to print the first 10 odd numbers Published at:- Write a Java 8 program to calculate the age of a person in years given their birthday Years Months Days Published at:- Write a Java 8 program to calculate the age of a person in years given their birthday Published at:- Write a program for group words by first character of given string | Java 8 Stream Example Published at:- Business, Economy & Banking (MCQs) Published at:- Varför ett Casino utan Svensk Licens Kan Erbjuda Större Bonusar: En Analys av Regleringsfria Spelmarknader Published at:- Can you explain how you would use Spring Boot to build a RESTful API for a project? Published at:- How do you schedule tasks in a Spring Boot application? Published at:- How do you handle exceptions in a Spring Boot application? Published at:- What is a Selector and Template Published at:- What are Components in Angular? Published at:- What is a CLI tool? Explain the importance of Angular CLI. Published at:- What are Angular advantages? Published at:- What is NPM(Node Package Manager) Published at:- How to check the angular version ? or Ways to find the angular version. Published at:- What is the difference between angular and angularjs? Published at:- What is angular Published at:- Decoding the Symbolism of Green in Highway Signage Published at:- The Ultimate Guide to the World's Best Dips Featuring Indian Chutneys Published at:- fizzbuzz problem java Published at:- pushing value at last in java | how to add element at the end of array in java Published at:- java toUpperCase() and toLowerCase() example Published at:- Scanner nextLine() ,nextInt() ,nextDouble() method in Java with Examples Published at:- Elevate Your Strategy: Top AI Tools Transforming Industries Published at:- IELTS Paraphrasing Published at:- Best practice for IELTS academic reading[IELTS 3 step strategy] Published at:- Does Watching Romantic Films Help Your Love Life? Published at:- Optimizing Remote Team Management with WorkTime Software Published at:- The Top 7 Online Casino Tools Published at:- How to Plan the Perfect Mother's Day Brunch in 2024 Published at:- From Past to Present: Evolution of Labour Rights on World Labour Day Published at:- Casino Gambling Systems and Strategies — Make Your Right Choice Published at:- The Importance of Investing in a Quality Portable Trade Show Display Published at:- How to Support and Promote World Heritage Conservation on World Heritage Day 2024 Published at:- Cultural Significance of the Cricket World Cup Logo Designs Published at:- Unlocking Innovation: What to Expect from the Jio 5G Smart Mobile Published at:- Betting on Underdog Squads: Be or Not to Be Published at:- vi shortcuts in terminal Published at:- Maintaining a Balanced Diet in Your Third Trimester: Nurturing Both Mother and Baby Published at:- Mobile Addiction and Relationships: Finding Balance in a Tech-Driven World Published at:- Interface and Usability of 1win: User Experience Published at:- Tips and Tricks to Win with Slot Machines 2024 Published at:- Educate-Online Partner Schools | Transforming Global Education Published at:- The Mathematics of Betting Using Statistics and Probabilities in IPL 2024 Published at:- Man of the Match: Where to Place Bet on MoM in India? Published at:-
R4R Team
The content on R4R.co.in website is created by expert teams.We have vistots from India, Afghanistan, Bahrain, Bhutan, Canada, France, Germany, Iraq, Japan, Kenya, Kuwait, Maldives, Nepal, Netherlands, Nigeria, Oman, Qatar, Russia, Rwanda, Seychelles, Tanzania, Ukraine, UAE, UK, USA etc