Category: conversion

conversion

Implement Triplet class (Or a 3-Tuple) in Java 0

Implement Triplet class (Or a 3-Tuple) in Java

Here, we will know how to implement our own Triplet class in Java. Actually, A Triplet is a container to store a triplet of three objects. Since JDK doesn’t provides any implementation of the...

convert Set<Integer> to Set<String> in java-8 0

convert Set<Integer> to Set<String> in java-8

we can see how to convert Set of Integer to Set of String in Java 8. Let’s use Java 8 Stream API to convert Set of Integer to Set of String. We can use...