Vrundesha Joshi has Published 289 Articles

How to use removeFirstOccurrence() in android LinkedBlockingDeque?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

138 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 retrieve a record from an existing table in a database using JDBC API?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

973 Views

A. You can read/fetch the contents of a record in a table using the SELECT query. This will return data in the form of a result table and, these result tables are called result-sets.SyntaxSELECT column1, column2, columnN FROM table_name; Or, SELECT * FROM table_name;To retrieve the contents of a row ... Read More

How to use synchronizedSortedSet in Android?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

109 Views

This example demonstrate about How to use synchronizedSortedSet in Android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.               ... Read More

How to enable webview zoom controls in android?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

2K+ Views

This example demonstrate about How to enable webview zoom controls in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

Convert a floating point number to string in C

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

9K+ Views

In this section we will see how to convert a number (integer or float or any other numeric type data) to a string.The logic is very simple. Here we will use the sprintf() function. This function is used to print some value or line into a string, but not in ... Read More

How to use removeLastOccurrence() in android ConcurrentLinkedDeque?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

108 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 removeLastOccurrence() in android ConcurrentLinkedDequeStep 1 − Create a new project in Android Studio, go to File ⇒ ... Read More

How to get current internet connection type in android?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

404 Views

This example demonstrate about How to get current internet connection type in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

How to create a Stored procedure in a database using JDBC API?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

3K+ Views

A. Stored procedures are sub routines, segment of SQL statements which are stored in SQL catalog. All the applications that can access Relational databases (Java, Python, PHP etc.), can access stored procedures.Stored procedures contain IN and OUT parameters or both. They may return result sets in case you use SELECT ... Read More

How to call an existing stored procedure in a database using JDBC API?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

868 Views

A. Stored procedures are sub routines, segment of SQL statements which are stored in SQL catalog. All the applications that can access Relational databases (Java, Python, PHP etc.), can access stored procedures.Stored procedures contain IN and OUT parameters or both. They may return result sets in case you use SELECT ... Read More

How to use retainAll() in android CopyOnWriteArraySet?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:25

111 Views

Before getting into an example, we should know what CopyOnWriteArraySet is. It is a thread-safe variant of ArrayList and operations add, set, and so on by making a fresh copy of the underlying array.This example demonstrates about How to use retainAll() in android CopyOnWriteArraySetStep 1 − Create a new project ... Read More

Advertisements