Java - Medium Articles
In Java, Stream provides an powerful alternative to process data where here we will be discussing one of the very frequently used methods named peek()… Read More
Stream flatMapToDouble(Function mapper) returns an DoubleStream consisting of the results of replacing each element of this stream with the contents of a mapped stream produced… Read More
Stream flatMap(Function mapper) returns a stream consisting of the results of replacing each element of this stream with the contents of a mapped stream produced… Read More
java.util.stream.IntStream in Java 8, deals with primitive ints. It helps to solve the old problems like finding maximum value in array, finding minimum value in… Read More
IntStream parallel() is a method in java.util.stream.IntStream. This method returns a parallel IntStream, i.e, it may return itself, either because the stream was already present,… Read More
Stream sorted(Comparator comparator) returns a stream consisting of the elements of this stream, sorted according to the provided Comparator. For ordered streams, the sort method… Read More
Stream sorted() returns a stream consisting of the elements of this stream, sorted according to natural order. For ordered streams, the sort method is stable… Read More
distinct() returns a stream consisting of distinct elements in a stream. distinct() is the method of Stream interface. This method uses hashCode() and equals() methods… Read More
java.util.Calendar.equals() is a method in Calendar class of java.util package. The method compares this Calendar to the specified Object.The method returns true if this object… Read More
Jio is having one of the most robust and fast pace interview process. Jio came to our campus for the position Of Graduate Engineer trainee… Read More
Write a program to print all distinct permutations of a given string in sorted order. Note that the input string may contain duplicate characters. In… Read More
To get the size of file from server first you need to connect to the server using URL and HttpURLConnection Class. To get the size… Read More
java.util.Calendar.after() is a method in Calendar class of java.util package. The method returns true if the time represented by this Calendar is after the time… Read More
java.util.Calendar.before() is a method in Calendar class of java.util package. The method returns true if the time represented by this Calendar is before the time… Read More
The BigDecimal class provides operations on double numbers for arithmetic, scale handling, rounding, comparison, format conversion and hashing. It can handle very large and very… Read More
Write a Java program to take an input string and exchange the first and last word and reverse the middle word. Examples:  Input : Hello… Read More
Java Program to read and download webpage Steps: 1. Create a URL object and pass url as string to download the webpage. URL example =… Read More
HashMap is the Class which is under Traditional Collection and ConcurrentHashMap is a Class which is under Concurrent Collections, apart from this there are various… Read More
JDBC (Java Database Connectivity) and ODBC (Open Database Connectivity). These both are API standards used for connecting applications to databases. ODBC can be used by… Read More
Suppose we have given a string in which some ranges as specified and we have to place the numbers which is between the given range… Read More