George John has Published 1081 Articles

Program for adding 2 numbers input from keyboard in 8085 Microprocessor

George John

George John

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

846 Views

We write an 8085 assembly language program of two input using two 2-digit hexadecimal numbers from the keyboard and then we add and the output results in the address field.FILE NAME ADD2NUM.ASM ORG C000H CURAD: EQU FFF7H UPDAD: EQU 06BCH CLEAR: EQU 044AH GTHEX: EQU 052FH MVI A, 0EH SIM ... Read More

Updating a MySQL column that contains dot (.) in its name?

George John

George John

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

1K+ Views

If the MySQL column contains dot (.) in its name, then you need to use backticks around the column name. To understand the above concept, let us create a table. The query to create a table is as followsmysql> create table UpdateDemo    -> (    -> UserId int NOT ... Read More

IntStream distinct() method in Java

George John

George John

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

154 Views

The distinct() method in the IntStream class in Java returns a stream consisting of the distinct elements of this stream.The syntax is as followsIntStream distinct()Let’s say we have the following elements in the stream. Some of them are repeatedIntStream intStream = IntStream.of(10, 20, 30, 20, 10, 50, 80, 90, 100, ... Read More

Display interface using serial transfer in 8085 Microprocessor

George John

George John

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

354 Views

In this module we have explained the complete interface of four numbers segmented into seven parts having the Light Emitting Diode which uses a serial data transfer scheme. The portion which is displayed of the interface has 4 LEDS comprises of 7-segments LEDs as we can see from the physical ... Read More

How to check current wifi supports 5 GHz band support in android?

George John

George John

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

311 Views

This example demonstrate about How to check current wifi supports 5 GHz band support 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

Opcode Fetch (OF) machine cycle in 8085 Microprocessor

George John

George John

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

13K+ Views

The OF machine cycle are constituted by the four clock cycles shown in the figure below. Here in these four clock cycles we execute opcode fetch, decode, and complete the execution. Moreover, in the instructions of 2- and 3-byte, and also in the instructions of 1 byte like ‘MOV B, ... Read More

How to use simple volley request in android?

George John

George John

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

1K+ 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

Create a database in MySQL from Java?

George John

George John

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

2K+ Views

The following is the code to create a database in MySQL from Java. We are creating the database with name, “Customer_Tracker_Database”import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; public class CreateDatabaseDemo {    public static void main(String[] args) {       Connection con=null;       Statement stmt=null;       ... Read More

Is PHP deg2rad() equal to MySQL radians()?

George John

George John

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

113 Views

Yes, both of these methods convert a degree value to radian. Let us create a table to understand MySQL radians. The query to create a table is as followsmysql> create table RadiansDemo    - > (    - > Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    - > Value ... Read More

IntStream max() method in Java

George John

George John

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

1K+ Views

The IntStream max() method in the Java IntStream class is used to get the maximum element from the stream. It returns an OptionalInt describing the maximum element of this stream, or an empty optional if this stream is empty.The syntax is as followsOptionalInt max()Here, OptionalInt is a container object which ... Read More

Advertisements