Chandu yadav has Published 1091 Articles

8085 program for Binary search

Chandu yadav

Chandu yadav

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

2K+ Views

Here we will see how to perform binary search in 8085.Problem Statement:Write 8085 Assembly language program to perform binary search on a set of data stored at location F110 to F119. The key is located at F100.DiscussionTo perform binary search, the array must be sorted. We are taking the lower ... Read More

8086 program to determine cubes of numbers in an array of n numbers

Chandu yadav

Chandu yadav

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

1K+ Views

In this program we will see how to find the cubes of n numbers stored in an array.Problem StatementWrite 8086 Assembly language program to calculate cubes of each numbers stored in an array of size n. The array size is stored at location offset 600, and Numbers are stored at ... Read More

Java Program to set Orientation and split components along y-axis

Chandu yadav

Chandu yadav

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

142 Views

Let us first create components to split. Here. We have two labels −JComponent one = new JLabel("Label One"); one.setBorder(BorderFactory.createLineBorder(Color.red)); JComponent two = new JLabel("Label Two"); two.setBorder(BorderFactory.createLineBorder(Color.blue));Now, set orientation and split along x-axis with HORIZONTAL_SPLIT −JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT); split.setTopComponent(one); split.setBottomComponent(two);The following is an example to set Orientation and split ... Read More

How to check if a table already exists in the database with MySQL with INFORMATION_SCHEMA.TABLES.?

Chandu yadav

Chandu yadav

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

1K+ Views

In order to check if a table already exists in the database by using MySQL, you can use INFORMATION_SCHEMA.TABLES. Following is the syntax −SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = ‘yourDatabaseName’ AND TABLE_NAME = ’yourTableName’;Let us implement the above syntax in order to check if a table already exists in ... Read More

HTML