
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Anvi Jain has Published 569 Articles

Anvi Jain
2K+ Views
In C, sorting arrays is a common task, and one of the functions that help with sorting is qsort(). To sort the array, qsort() needs a comparator function to decide how to compare two elements. Without this function, qsort() wouldn't know how to order the data. The task here is ... Read More

Anvi Jain
351 Views
In this article, we will learn how to add a component to a JTextPane in Java. By using StyledDocument and StyleConstants, we can insert elements like buttons within the text pane, allowing us to create dynamic and interactive text-based components.JTextPaneJTextPane is a versatile text component in Java Swing that allows ... Read More

Anvi Jain
341 Views
In this article, we will learn how to set major tick marks in a JSlider component in Java. A JSlider is a Swing component that allows users to select a numeric value from a range. Tick marks help improve user experience by marking specific intervals along the slider. Major tick marks ... Read More

Anvi Jain
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

Anvi Jain
782 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

Anvi Jain
832 Views
In this program, we will create a tree structure using JTree and DefaultMutableTreeNode in Java to represent a hierarchical structure, such as a website. We will then use the getChildCount() method to retrieve and display the number of child nodes for specific nodes in the tree. The example focuses on ... Read More

Anvi Jain
1K+ Views
In this article, we will learn to implement binary search on char array using Java. The binary search on a char array can be implemented by using the Arrays.binarySearch() method of java.util package. This method returns the index of the required char element if it is available in the array, ... Read More

Anvi Jain
2K+ 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

Anvi Jain
27K+ Views
The getProperty(String key) method in Java is used to returns the system property denoted by the specified key passed as its argument.It is a method of the java.lang.System Class.Declaration − The java.lang.System.getProperty(String key) is declared as follows −public static String getProperty(String key)where key is the name of the System property.Some ... Read More