Anvi Jain has Published 629 Articles

The contains() method of the Java Octet Tuple

Anvi Jain

Anvi Jain

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

59 Views

If you want to search whether a particular value exist in the Java Octet Tuple, you need to use the contains() method.For example, to find the element “Motherboard”, use it like this −boolean res = oc.contains("Motherboard");As shown above, we have used boolean i.e. the contains() method returns a boolean value; ... Read More

How to remove an element from a doubly-nested array in a MongoDB document?

Anvi Jain

Anvi Jain

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

2K+ Views

To remove an element from a doubly-nested array in MongoDB document, you can use $pull operator.To understand the concept, let us create a collection with the document. The query to create a collection with a document is as follows −> db.removeElementFromDoublyNestedArrayDemo.insertOne(    ... {       ... "_id" : ... Read More

Rename function in C/C++

Anvi Jain

Anvi Jain

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

286 Views

The C library function int rename(const char *old_filename, const char *new_filename) causes the filename referred to by old_filename to be changed to new_filenameFollowing is the declaration for rename() function.int rename(const char *old_filename, const char *new_filename)The parameters are old_filename − This is the C string containing the name of the file ... Read More

How to find middle element in a array in android?

Anvi Jain

Anvi Jain

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

100 Views

This example demonstrate about How to find middle element in a array 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 search for a value in Java Ennead Tuple

Anvi Jain

Anvi Jain

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

54 Views

To search for a value in Ennead Tuple in Java, use the contains() method. The value you want to search is to be set as the parameter of the method. The contains() method returns a Boolean value i.e TRUE if the value exist, else FALSE. Let us first see what ... Read More

Comparing dates in MySQL ignoring time portion of a DateTime field?

Anvi Jain

Anvi Jain

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

693 Views

To compare dates in MySQL except time portion of a datetime field, you can use DATE() function. The syntax is as follows −select *from yourTableName where date(yourColumName) = yourDate;To understand the above concept, let us create a table. The query to create a table is as follows −mysql> create table ... Read More

Is MySQL LIMIT applied before or after ORDER BY?

Anvi Jain

Anvi Jain

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

93 Views

The MySQL LIMIT is applied after ORDER BY. Let us check the limit condition. Firstly, we will create a table −mysql> create table LimitAfterOrderBy    −> (    −> Id int,    −> Name varchar(100)    −> ); Query OK, 0 rows affected (0.50 sec)Insert some records in the table ... Read More

Get timestamp date range with MySQL Select?

Anvi Jain

Anvi Jain

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

930 Views

To select timestamp data range, use the below syntax −SELECT *FROM yourTableName where yourDataTimeField >= anyDateRange and yourDataTimeField < anyDateRangeTo understand the above syntax, let us create a table. The query to create a table is as follows −mysql> create table DateRange −> ( ... Read More

8085 Program to convert BCD to HEX

Anvi Jain

Anvi Jain

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

3K+ Views

In this program we will see how to convert BCD numbers to binary equivalent.Problem StatementA BCD number is stored at location 802BH. Convert the number into its binary equivalent and store it to the memory location 802CH.DiscussionIn this problem we are taking a BCD number from the memory and converting ... Read More

Concept of Direct Memory Access (DMA)

Anvi Jain

Anvi Jain

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

3K+ Views

The microcomputer system basically consists of three blocksThe microprocessorThe memories of microprocessor like EPROM and RAMThe I/O ports by which they are connected.The possible data transfers are indicated below.Between the memory and microprocessor data transfer occurs by using the LDA and STA instructions.Between microprocessor and I/O ports also data transfer ... Read More

Advertisements