Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Java Program to Encode a Message Using Playfair Cipher
Encrypting is the task of transforming information into an unreadable format or cipher text. It is usually done to protect the confidentiality of information. There are many ways and algorithms to encrypt data. One such example is the Playfair cipher algorithm. In this article, we are going to see how to write a Java program to encode a message using Playfair cipher. Playfair cipher makes use of a 5X5 grid or matrix and a set of pre-defined rules. To encrypt, we require a key and the plain text to be encrypted. Steps Now let us see the steps to encrypt ...
Read MorePet Astrology: Are You and Your Pet Compatible?
Pet astrology typically follows the same zodiac system used for humans based on the sun's position at birth. Each sign is associated with certain qualities and tendencies, such as Aries being known for their energy and independence and Taurus for their loyalty and love of comfort. Pet Astrology Pet astrology uses a pet's birth date and time to determine its astrological sign and analyze its personality traits and behaviors based on its associated characteristics. Some people believe that understanding their pet's astrological signs can help them better understand their pet's personality and behavior and provide insights into their likes, ...
Read MoreHow Binary Classification Tree Algorithm Works
Introduction Binary Classification Tree (BCT) is a popular algorithm used in machine learning for supervised learning tasks such as classification. BCT is a type of decision tree algorithm that can be used to classify data into one of two categories (hence the "binary" part of its name). In this article, we will explain how the BCT algorithm works and how it can be used for binary classification tasks. How Binary Classification Tree Algorithm Works The BCT algorithm works by constructing a decision tree based on the features of the input data. The decision tree is a tree-like structure where ...
Read MoreHow to use Container Component in ReactJS?
The container component creates a container on the web page like a box. Also, we can set the height of the container according to the height of the inside content. Furthermore, we can set the variable width for the Container component. Basically, we can use the Container to create a Rectangular box and add some HTML content inside that. Users should use the below command to install the Material UI in the React project. npm install @mui/material @emotion/react @emotion/styled Syntax Users can follow the syntax below to use the Cotnainer component of Material UI. ...
Read MoreHow to use Checkboxes in ReactJS?
The checkbox allows users to select multiple values in the form. Also, it is useful to take the Boolean response from the users. For example, an Instagram-like button is a kind of checkbox. When users like the post, it shows the filled icon; Otherwise, it shows the border icon. Here, we will learn to handle single and multiple checkboxes in ReactJS. First, we will create the custom checkboxes and then learn to use the checkbox component of Material UI. Create a Custom Checkbox Component in ReactJS We can use the normal HTML input to create a checkbox in ...
Read MoreReplace the Matrix Elements by Its Square in Java?
Matrices are nothing but it’s more than a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. As per the problem statement the task is replace the matrix elements by its square. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Suppose the original matrix is {{8, 3, 2}, {12, 7, 9}, {6, 4, 10}}; After replacing the matrix element by its square, the result matrix will be 64 ...
Read MoreHow to Get File Owner's Name in Java?
As per the problem statement, we are going to find the file owner name in Java. The owner’s name here represents the owner of the PC in which file is being runned. To find the file owner in Java we will use the getOwner() method of the FileOwnerAttributeView class. FileOwnerAttributeView belongs to the java.nio class. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Suppose the given file location is “D:/saket.txt”. After checking for Owner name of the given file, the output will be − ...
Read MoreHow to Homogenize a Point in Java?
In this article we will see how to homogenize a point. Any point in the projective plane is represented by a triple (X, Y, Z), called homogeneous coordinates or projective coordinates of the point, where X, Y and Z are not all 0. The point represented by a given set of homogeneous coordinates is unchanged if the coordinates are multiplied by a common factor. As per the problem statement we have to homogenize a point by taking any common factor and multiplying it with the given points. Let’s start! To show you some instances Instance-1 Suppose the points are (10, ...
Read MoreHow to Find Single Digit Array Elements in Java?
In a given array with some random integer values, we have to find out the single digits available in the given array and print those single digit values as output. An array can contain positive or negative numbers irrespective of the number of digits in a number. As here all elements belong to numeric type. Note- Take a positive integer array. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Given Array= [1, 12, 3, 4, 10, 15]. The single digit elements present in the ...
Read MoreHow to Copy Data from Protected Sheets in Excel?
The Excel sheets where we can put some restrictions on the sheet are known as "protected sheets." In Excel, you may want to copy protected data to another sheet or within the same sheet at times. If we try to copy the data directly, then Excel will not allow us to copy the data. But we can use the tricks given in this tutorial to copy the data from a protected sheet. Read this tutorial to learn how we can copy data from a protected sheet in Excel. We can solve this task using these two methods. The first method ...
Read More