Core java
15 SeptemberLongest Common Prefix in an array of Strings in java
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. In this post, we are going to see longest common prefix in array of Strings. So lets say you have string array as below: [crayon-6a298b36c4667380758026/] So Longest common prefix in above String array will be “java” […]
13 SeptemberJava 8 Stream filter examples
In this post, Â we are going to see about Java 8 Stream filter example. You can convert list or array to stream very easily and perform various operations on top of it.Java 8 Stream provides various methods such as map, Â filter, reduce etc. Let’s see more about Java 8 Stream filter method. Java 8 Stream […]
12 SeptemberBet365 mobil gids: registratie, bonusberekening en stortingen
Of je nu een nieuwe bezoeker bent of terugkeert naar Bet365 nederland, deze gids behandelt de essentiële functies die je moet weten. Van registratie tot het berekenen van bonussen en het gebruik op mobiel, alles komt aan bod. Vereisten Je moet 18 jaar of ouder zijn. Een geldig identiteitsbewijs (ID of paspoort) is nodig voor […]
10 SeptemberImplement stack using Linked List in java
If you want to practice data structure and algorithm programs, you can go through 100+ java coding interview questions. In this program, we will see how to implement stack using Linked List in java. The Stack is an abstract data type that demonstrates Last in first out (LIFO) behavior. We will implement the same behavior using […]
05 SeptemberJava 8 forEach examples
In this post, we will see improved way of iterating through map and list which are introduced in java 8. Map: Normal way of iterating HashMap before java 8: [crayon-6a298b36c5250234356724/] Improved way of iterating HashMap in java 8: [crayon-6a298b36c5257403510795/] When you run above program, you will get below output: Iterating Using Java 8 —————————– Country:Japan […]
05 SeptemberJava 8 Supplier example
In this post, we are going to see about java 8 Supplier interface. Supplier is functional interface which does not take any argument and produces result of type T.It has a functional method called T get() As Supplier is functional interface, so it can be used as assignment target for lambda expressions. Here is source code […]
05 SeptemberJava 8 Consumer example
In this post, we are going to see about java 8 Consumer interface. Consumer is single argument functional interface like Predicate but it does not return any value. As Consumer is functional interface, so it can be used as assignment target for lambda expressions. Consumer definition Consumer takes single argument and do not return any […]
05 SeptemberJava 8 functional interface example
In this post , we are going to see about functional interface in java. It is closely related to java lambda expressions. Functional interfaces are those interfaces which have only one abstract method, it can have default methods, static methods and it can also override java.lang.Object class method. There are many functional interfaces already present. […]
03 SeptemberJava 8 Predicate Example
1. Introduction Java 8 predicate is functional interface introduced in java 8. This feature is a part of the java.util.function package, which is dedicated to functional interfaces. The primary goal of using predicates is to filter or match objects based on specific criteria. For example, if we have a box of apples and we want […]