Anvi Jain has Published 629 Articles

How to filter data using where Clause and “NOT IN” in Android sqlite?

Anvi Jain

Anvi Jain

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

142 Views

Before getting into example, we should know what sqlite data base in android is. SQLite is an open source SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to ... Read More

How to convert string to numerical values in MongoDB?

Anvi Jain

Anvi Jain

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

400 Views

You need to use some code in order to convert a string to numerical values in MongoDB.Let us first create a collection with a document. The query to create a collection with a document is as follows:> db.convertStringToNumberDemo.insertOne({"EmployeeId":"101", "EmployeeName":"Larry"}); {    "acknowledged" : true,    "insertedId" : ObjectId("5c7f56528d10a061296a3c31") } > ... Read More

How to know which storage engine is used in MongoDB?

Anvi Jain

Anvi Jain

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

242 Views

To know which storage engine is used in MongoDB, you can use storageEngine. The syntax is as follows −db.serverStatus().storageEngine;To know all the configuration details of storage engine, you can use the following syntax:db.serverStatus().yourStorageEngineName;Let us implement the above syntax to know which storage engine is being used in MongoDB. The query ... Read More

Storage of integer and character values in C

Anvi Jain

Anvi Jain

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

920 Views

We have used the integer and character variables many times in our program. Here we will see how they are stored in the memory.In C the character values are also stored as integers. In the following code, we shall put 270 into a character type data. So the binary equivalent ... Read More

How to find its first non-repeating character in a given string in android?

Anvi Jain

Anvi Jain

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

135 Views

This example demonstrate about How to find its first non-repeating character in a given string 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 set Octet value in JavaTuples

Anvi Jain

Anvi Jain

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

103 Views

To set Octet value in Java, you need to use the setAtX() method. Here, X is the index wherein you need to set the value i.e. to set value at index 1, use the setAt1() and value as a parameter.Let us first see what we need to work with JavaTuples. ... Read More

Auto increment in MongoDB to store sequence of Unique User ID?

Anvi Jain

Anvi Jain

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

556 Views

To auto increment in MongoDB to store a sequence of unique user id, let us create a collection which contains information about last sequence values of all documents.Let us first create a collection. The query to create a collection which is as follows −> db.createSequenceDemo.insertOne({_id:"SID", S_Value:0}); { "acknowledged" : true, ... Read More

Assigning multiple characters in an int in C language

Anvi Jain

Anvi Jain

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

283 Views

The character type data is stored by its ASCII value internally in C or C++. If we want to print a single character as integer, we will get the ASCII value. But when we are trying to print more than one character using a single quote, then it will print ... Read More

__func__ identifier in C

Anvi Jain

Anvi Jain

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

241 Views

Here we will see what is the __func__ C.Basically the __func__ or __FUNCTION__ (Some old versions of C and C+ + supports __func__). This macro is used to get the name of the current function.Example#include void TestFunction(){    printf("Output of __func__ is: %s", __func__ ); } main() {    printf("Output ... Read More

How to remove duplications from unsorted linked list in android?

Anvi Jain

Anvi Jain

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

77 Views

This example demonstrate about How to remove duplications from unsorted linked list 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

Advertisements