Arjun Thakur has Published 1109 Articles

8085 program to count total odd numbers in series of 10 numbers

Arjun Thakur

Arjun Thakur

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

2K+ Views

In this program we will see how to count number of odd numbers in a block of elements.Problem StatementWrite 8085 Assembly language program to count number of odd numbers in a block of data, where the block size is 10D. The block is starting from location 8000H.DiscussionThe Odd Even checking ... Read More

How to set Raised and Lowered EtchedBorder for components in Java?

Arjun Thakur

Arjun Thakur

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

191 Views

To set raised EtchedBorder −Border raisedBorder = new EtchedBorder(EtchedBorder.RAISED);To set lowered EtchedBorder −Border loweredBorderEtched = new EtchedBorder(EtchedBorder.LOWERED);Now, set both the borders for components −JButton raisedButton = new JButton("Raised Border"); raisedButton.setBorder(raisedBorder); JLabel loweredLabel = new JLabel("Lowered Border Etched"); loweredLabel.setBorder(loweredBorderEtched);The following is an example to set raised and lowered EtchedBorder for components ... Read More

Counting same strings in a new MySQL column?

Arjun Thakur

Arjun Thakur

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

82 Views

Use COUNT() for this. Let us first create a table −mysql> create table DemoTable    (    StudentFirstName varchar(20)    ); Query OK, 0 rows affected (0.53 sec)Insert records in the table using insert command −mysql> insert into DemoTable values('Larry'); Query OK, 1 row affected (0.13 sec) mysql> insert into ... Read More

8085 program to find the sum of series of even numbers

Arjun Thakur

Arjun Thakur

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

1K+ Views

In this program we will see how to find the sum of all even numbers.Problem StatementWrite 8085 Assembly language program to find sum of all even numbers stored in an array. The size of the array is stored at location F100; the numbers are stored from memory location F101 onwards. ... Read More

Java Program to enable cell selection in a JTable

Arjun Thakur

Arjun Thakur

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

421 Views

To enable cell selection, use the setCellSelectionEnabled() method and set it to TRUE −table.setCellSelectionEnabled(true);The above sets whether this table allows both a column selection and arow selection to exist simultaneously.The following is an example to enable cell selection in a JTable −Examplepackage my; import java.awt.Color; import javax.swing.BorderFactory; import javax.swing.JFrame; import ... Read More

8085 program to print the table of input integer

Arjun Thakur

Arjun Thakur

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

452 Views

In this program we will see how to generate table of an integer.Problem StatementWrite 8085 Assembly language program to generate a table of input integer. The number is stored at F050, and the table will be stored at F051 onwards.DiscussionTable generation is basically the multiplication table creation. We are taking ... Read More

8086 program to determine sum of corresponding elements of two arrays

Arjun Thakur

Arjun Thakur

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

2K+ Views

Here we will see how to find sum of two array elements and store result into memory.Problem StatementWrite 8086 Assembly language program to find summation of two arrays stored at 501 onwards and 601 onwards. The size of array is stored at location 500. After calculating the sum results are ... Read More

Java Program to select a column in JTable?

Arjun Thakur

Arjun Thakur

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

923 Views

To select a column in a JTable, use the setColumnSelectionInterval() and set the interval for the column you would like to select.For example, if you want to select a single column i.e. column2, then set the interval as (2, 2) in the setColumnSelectionInterval() method.The following is an example to select ... Read More

How to count the distinct column in MySQL?

Arjun Thakur

Arjun Thakur

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

141 Views

You need to use GROUP BY for this. Let us first create a table −mysql> create table DemoTable    (    StudentFirstName varchar(20)    ); Query OK, 0 rows affected (0.74 sec)Insert records in the table using insert command −mysql> insert into DemoTable values('John'); Query OK, 1 row affected (1.34 ... Read More

HTML DOM Anchor hash Property

Arjun Thakur

Arjun Thakur

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

113 Views

The HTML DOM Anchor hash property is used to set or return the anchor part of the href attribute value. The part of the URL after the # is what we call the anchor part of a link.Following is the syntax to set the hash property −anchorObject.hash = anchor_partAbove, anchor_part ... Read More

Advertisements