Chandu yadav has Published 1163 Articles

IntStream empty() method in Java

Chandu yadav

Chandu yadav

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

114 Views

The empty() method of the IntStream class returns an empty sequential IntStream.The syntax is as followsstatic IntStream empty()This is how you can create an empty IntStreamIntStream intStream = IntStream.empty();Now, using the count() method you can check the count of elements in the stream, which is 0 since we created an ... Read More

Interfacing of I/o Devices

Chandu yadav

Chandu yadav

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

620 Views

We interface the I/O device in a very segmented manner and is carried systematically. In the interfacing of seven segment display to 8085 microcontroller it is found that An output device which is very common is, especially in the kit of 8085 microprocessor and it is the Light Emitting Diode ... Read More

LongStream sum() method in Java

Chandu yadav

Chandu yadav

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

47 Views

The sum() method of the LongStream class returns the sum of elements in this stream.The syntax is as followslong sum()To use the LongStream class in Java, import the following packageimport java.util.stream.LongStream;First, create an IntStream and add some elementsLongStream longStream = LongStream.of(100L, 30000L, 45000L, 55000L, 70000L);Now, add the elements of the ... Read More

How to use volley string request in android?

Chandu yadav

Chandu yadav

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

3K+ Views

This example demonstrate about How to use simple volley request 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.     In the ... Read More

Interfacing a simple keyboard with 8085 Microprocessor

Chandu yadav

Chandu yadav

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

3K+ Views

A keyboard is a very common input device. We assume that there are only eight keys for the simple keyboard. Whenever a key is pressed on this keyboard by the user, the microprocessor immediately identifies which key is pressed. The action which is to be performed by the processor depends ... Read More

How to disable wifi in android?

Chandu yadav

Chandu yadav

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

572 Views

This example demonstrate about How to disable wifi 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.     In the above code, ... Read More

Get the returned record set order in MySQL IN clause?

Chandu yadav

Chandu yadav

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

94 Views

For returned record set order, you need to use FIND_IN_SET() function. For an example, let us create a table.mysql> create table returnRecordSetOrderDemo    -> (    -> Id int,    -> Name varchar(20)    -> ); Query OK, 0 rows affected (1.01 sec)Insert some records in the table using insert command.The ... Read More

How can I make a table in MySQL called “order”?

Chandu yadav

Chandu yadav

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

4K+ Views

As you know, order is a keyword in MySQL, you cannot give table name order directly. You need to use backtick around the table name order. Backtick allow a user to consider the keyword as table or column name.The syntax is as followsCREATE TABLE `order` (    yourColumnName1 dataType,   ... Read More

LongStream.Builder accept() method in Java

Chandu yadav

Chandu yadav

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

69 Views

The accept() method of the LongStream.Builder class adds an element to the stream being built.The syntax is as followsvoid accept(long i)Here, i is the input.To use the LongStream.Builder class in Java, import the following packageimport java.util.stream.LongStream;Create a LongStreamLongStream.Builder builder = LongStream.builder();Add some elementsbuilder.accept(200L); builder.accept(600L); builder.accept(400L);The following is an example to ... Read More

Memory Write (MW) machine cycle in 8085 Microprocessor

Chandu yadav

Chandu yadav

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

2K+ Views

In the last three clock cycles the instructions ‘MVI M, 25H’ are the example for Memory Write machine cycle. We have shown the Waveforms for MW machine cycle are shown in fig below.The address which is sent out from the register pair in a Memory Write machine cycle is completely dependent ... Read More

Advertisements