Samual Sam has Published 2310 Articles

Set the flex items horizontally from right to left with CSS

Samual Sam

Samual Sam

Updated on 04-Jul-2020 07:59:28

201 Views

Use the flex-direction property with row-reverse value to set the flex-items horizontally from right to left.ExampleYou can try to run the following code to implement the row-reverse valueLive Demo                    .mycontainer {             display: flex;     ... Read More

MongoDB query to find the highest numeric value of a column?

Samual Sam

Samual Sam

Updated on 02-Jul-2020 11:33:59

191 Views

You can use $not operator along with $type for this. Let us first create a collection with documents −> db.highestNumericValueOfAColumnDemo.insertOne( ...    { ...       "StudentName": "John", ...       "StudentMathMarks":69 ...    } ... ); {    "acknowledged" : true,    "insertedId" : ObjectId("5cba05727219729fde21ddb1") } > ... Read More

How to use peekLast() in android ConcurrentLinkedDeque?

Samual Sam

Samual Sam

Updated on 30-Jun-2020 14:58:49

145 Views

Before getting into an example, we should know what ConcurrentLinkedDeque is, it is unbounded deque based on linked nodes. Multiple threads can access deque elements with safety.This example demonstrates about How to use peekLast() in android ConcurrentLinkedDequeStep 1 − Create a new project in Android Studio, go to File ⇒ ... Read More

How to use peekFirst() in android ConcurrentLinkedDeque?

Samual Sam

Samual Sam

Updated on 30-Jun-2020 14:57:54

115 Views

Before getting into the example, we should know what ConcurrentLinkedDeque is, it is unbounded deque based on linked nodes. Multiple threads can access deque elements with safety.This example demonstrates about How to use peekFirst() in android ConcurrentLinkedDequeStep 1 − Create a new project in Android Studio, go to File ⇒ ... Read More

How to use peek() in android PriorityBlockingQueue?

Samual Sam

Samual Sam

Updated on 30-Jun-2020 14:55:17

125 Views

Before getting into the example, we should know what PriorityBlockingQueue is. It is an unbounded queue and follows the same order as a priority queue. The main usage of priority blocking queue is, it going to handle out of memory error.This example demonstrates about How to use peek() in android ... Read More

How to use peak() in android LinkedBlockingDeque?

Samual Sam

Samual Sam

Updated on 30-Jun-2020 14:46:05

128 Views

Before getting into the example, we should know what LinkedBlockingDeque is. It is implemented by Collection interface and the AbstractQueue class. It provides optional boundaries based on linked nodes. It going to pass memory size to a constructor and helps to provide memory wastage in android.This example demonstrates about How ... Read More

How to use offerFirst() in android LinkedBlockingDeque?

Samual Sam

Samual Sam

Updated on 30-Jun-2020 14:44:08

119 Views

Before getting into the example, we should know what LinkedBlockingDeque is. It is implemented by Collection interface and the AbstractQueue class. It provides optional boundaries based on linked nodes. It going to pass memory size to a constructor and helps to provide memory wastage in android.This example demonstrates about How ... Read More

How to use offer() in android LinkedBlockingDeque?

Samual Sam

Samual Sam

Updated on 30-Jun-2020 14:42:26

148 Views

Before getting into the example, we should know what LinkedBlockingDeque is. It is implemented by Collection interface and the AbstractQueue class. It provides optional boundaries based on linked nodes. It going to pass memory size to the constructor and helps to provide memory wastage in android.This example demonstrates about How ... Read More

How to use LinkedBlockingDeque in android?

Samual Sam

Samual Sam

Updated on 30-Jun-2020 14:41:25

160 Views

Before getting into the example, we should know what LinkedBlockingDeque is. It is implemented by Collection interface and the AbstractQueue class. It provides optional boundaries based on linked nodes. It going to pass memory size to a constructor and helps to provide memory wastage in android.This example demonstrates about How ... Read More

How to use isEmpty() in android ConcurrentLinkedQueue?

Samual Sam

Samual Sam

Updated on 30-Jun-2020 14:39:56

134 Views

Before getting into an example, we should know what ConcurrentLinkedQueue is, it is an unbounded queue based on linked nodes. Multiple threads can access queue elements with safety. Elements travel based on queue strategy as FIFO and elements going to insert from a tail. It does not allow null values.This ... Read More

Advertisements