
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
1K+ Views
Dictionary is an abstract class that represents a key/value storage repository and operates much like Map. Given a key and value, you can store the value in a Dictionary object. Once the value is stored, you can retrieve it by using its key. Thus, like a map, a dictionary can ... Read More

AmitDiwan
167 Views
The max() method of the Ints class returns the greatest value present in array. Following is the syntax −static int max(int... array)Let us first see an example −Exampleimport com.google.common.primitives.Ints; class Demo { public static void main(String[] args) { int[] myArr = { 10, 20, 30, 40, ... Read More

AmitDiwan
153 Views
The lastIndexOf() method of the Ints class returns the index of the last appearance of the value target in array. The syntax is as follows −public static int lastIndexOf(int[] arr, int target)Here, arr is the array of int values, whereas target is the int value for which we are finding ... Read More

AmitDiwan
100 Views
Following is an example to implement Quintet class from Quartet class in Java −Exampleimport org.javatuples.Quartet; import org.javatuples.Quintet; public class MyDemo { public static void main(String[] args) { Quartetquartet = new Quartet( "Table", "Chair", "Pen", "Paper"); System.out.println("Quartet elements = " ... Read More

AmitDiwan
14K+ Views
The division operator in Java includes the Division, Modulus, and the Divide And Assignment operator. Let us work with them one by one −Divison OperatorThe division operator divides left-hand operand by right-hand operand.Modulus OperatorThe modulus operator divides left-hand operand by right-hand operand and returns remainder.Divide And Assignment OperatorThis operator divides ... Read More

AmitDiwan
118 Views
Following is an example to implement Quartet class from Triplet class in Java −Exampleimport org.javatuples.Triplet; import org.javatuples.Quartet; public class MyDemo { public static void main(String[] args) { Triplettriplet = new Triplet("Gray", "Blue", "Gray100"); System.out.println("Triplet elements = " + triplet); Quartetquartet ... Read More

AmitDiwan
322 Views
The join() method of Ints class returns a string containing the supplied int values separated by separator. The syntax is as follows −public static String join(String separator, int[] arr)Here, separator parameter is something that should appear between consecutive values, whereas arr is an array of int values.Let us first ... Read More

AmitDiwan
1K+ Views
The indexOf() method of the Ints class returns the index of the first appearance of the value target in array. The syntax is as follows −public static int indexOf(int[] arr, int target)Here, parameter arr is an array of int values and target is the value to be checked for first ... Read More

AmitDiwan
198 Views
Let’s say the following is our stream −Stream stream = Stream.of(50, 100, 200, 400, 800, 1000, 2000);Now, convert stream to an array using toArray() −Object[] objArr = stream.toArray(Object[] ::new);Following is the program to convert Stream to an Array in Java −Exampleimport java.util.*; import java.util.stream.*; import java.util.function.Function; public class Demo { ... Read More