Anvi Jain has Published 419 Articles

Concept of Direct Memory Access (DMA)

Anvi Jain

Anvi Jain

Updated on 05-Nov-2024 12:01:58

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

Java program to get text from JTextPane and display in Console

Anvi Jain

Anvi Jain

Updated on 23-Oct-2024 17:32:48

898 Views

In this article, we will learn how to get text from a JTextPane in Java and display it in the console. We'll use the getText() method to retrieve the text and show it in the console. Additionally, we’ll apply simple text styling like italics and color using SimpleAttributeSet to demonstrate ... Read More

Java program to set an icon for JOptionPane

Anvi Jain

Anvi Jain

Updated on 20-Sep-2024 21:38:14

3K+ Views

In this program, we will learn how to set a custom icon in a JOptionPane using Java's Swing framework. A JOptionPane allows displaying dialog boxes for different purposes such as messages, inputs, or confirmations. In this example, we will create a dialog box with a custom image icon displayed alongside ... Read More

Hidden Bootstrap class

Anvi Jain

Anvi Jain

Updated on 21-Nov-2023 21:14:35

2K+ Views

To hide a Bootstrap class, use the .hidden class.Example You can try to run the following code to hide a class −           Bootstrap Example                                                       This class is visible.                                 This is an example for hide class. This will be hidden.                    

8085 program to multiply two 8 bit numbers

Anvi Jain

Anvi Jain

Updated on 26-Oct-2023 03:34:36

36K+ Views

In this program we will see how to multiply two 8-bit numbers using 8085 microprocessor.Problem StatementWrite 8085 Assembly language program to multiply two 8-bit numbers stored in memory location and store the 16-bit results into the memory.DiscussionThe 8085 has no multiplication operation. To get the result of multiplication, we should ... Read More

Generate a random array of integers in Java

Anvi Jain

Anvi Jain

Updated on 12-Sep-2023 03:29:56

40K+ Views

In order to generate random array of integers in Java, we use the nextInt() method of the java.util.Random class. This returns the next random integer value from this random number generator sequence.Declaration − The java.util.Random.nextInt() method is declared as follows −public int nextInt()Let us see a program to generate a ... Read More

How to search in array of object in MongoDB?

Anvi Jain

Anvi Jain

Updated on 10-Sep-2023 07:55:51

32K+ Views

To search the array of object in MongoDB, you can use $elemMatch operator. This operator allows us to search for more than one component from an array object.To understand the above concept, let us create a collection with the document. The query to create a collection with a document is ... Read More

How to get the datatype of MySQL table columns?

Anvi Jain

Anvi Jain

Updated on 02-Sep-2023 12:13:53

48K+ Views

You can get the MySQL table columns data type with the help of "information_schema.columns".The syntax is as follows −SELECT DATA_TYPE from INFORMATION_SCHEMA.COLUMNS where table_schema = 'yourDatabaseName' and table_name = 'yourTableName'To understand the above syntax, let us first create a table −mysql> create table DataTypeDemo −> (    −> Id int, ... Read More

How to draw sine waves with HTML5 SVG?

Anvi Jain

Anvi Jain

Updated on 16-Dec-2021 10:30:46

1K+ Views

To draw sine waves with SVG, use the following that closely approximates half of a sine wave. I have used a cubic-bezier approximation. Use the element.Example           SVG                     HTML5 SVG Sine Waves                           Output

C++ Program to Implement the RSA Algorithm

Anvi Jain

Anvi Jain

Updated on 17-May-2021 06:43:38

19K+ Views

RSA is an asymmetric cryptography algorithm which works on two keys-public key and private key.AlgorithmsBegin    1. Choose two prime numbers p and q.    2. Compute n = p*q.    3. Calculate phi = (p-1) * (q-1).    4. Choose an integer e such that 1 < e < ... Read More

1 2 3 4 5 ... 42 Next
Advertisements