Java
Declare and Initialize 2d Array in Java
In this post, we are going to look at how to declare and initialize the 2d array in Java. Each Read more…
In this post, we are going to look at how to declare and initialize the 2d array in Java. Each Read more…
The clear() method of ArrayBlockingQueue removes all the elements from the queue. The queue becomes empty after calling this method. Read more…
The remainingCapacity() method of ArrayBlockingQueue returns the remaining capacity of the queue. It returns an integer value. For example, if Read more…
The contains() method in ArrayBlockingQueue checks if the queue has the specified element. If the element is available in the Read more…
The peek() method of ArrayBlockingQueue returns the head element of the queue. It retrieves but does not remove the element. Read more…
The offer() method in ArrayBlockingQueue appends the specified element at the end of the queue if the queue is not Read more…
The put() method of ArrayBlockingQueue class appends the specified element at the tail of the queue if the queue is Read more…
The add() method of ArrayBlockingQueue appends the specified element at the end of the queue. It returns true on the Read more…
In this article, we will look at the ways to convert String to int in Java using Integer.parseInt() and Integer.valueOf() Read more…
A functional interface in java has only one abstract method, and it can have any number of default and static Read more…