In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. Here we have given a matrix which contains set of elements and as per the problem statement we have to find out the sum of all the elements present inside the matrix. 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 matrix =21 22 23 24 25 26 27 28 29 Sum ... Read More
jQuery- a popular JavaScript library used in simplifying web development tasks. It gives an easy-to-use syntax that simplifies coding and improves performance. Among the many features that jQuery provides, two of the most commonly used are .on() and .hover(). These methods allow to bind events to DOM elements and executing code when the events are triggered. In this article, we will learn how to use .on() and .hover() in jQuery. We will see the different approaches to using the .on() and .hover() methods. The .on() Method The .on() method in jQuery is used in binding one or more events to ... Read More
Uploading files on a website can be a challenging task, especially when you have to handle different types of files, such as images, videos, and documents. Fortunately, jQuery Dropzone Plugin makes it easy to handle file uploads with just a few lines of code. There are many more plugins available for uploading the files like Fine-Uploader, JQuery File upload, Uploadify, etc. In this article, we will learn how to upload files using the jQuery Dropzone plugin. We will go through the complete process of using the jQuery Dropzone Plugin to upload files on the website. What is jQuery Dropzone Plugin? ... Read More
In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. An identity matrix is a square matrix where all the elements of the main diagonal (i.e., the diagonal from the top-left to the bottom-right corner) are 1, and all the other elements are 0. It is denoted by the symbol "I" or "In", where "n" represents the size of the matrix. The identity matrix is important in linear algebra because it acts as the ... Read More
Underlining text is a common requirement in web development, and it can be done easily with the help of jQuery. In this article, we will see how to underline all words of a text using jQuery and learn the different methods to perform this. Before we dive into the different methods, let's first understand the basic concept of jQuery. jQuery is a fast and concise JavaScript library that simplifies HTML document traversing, event handling, and animation. It is designed to make things easier for web developers, and it does so by providing a simple syntax that is easy to read ... Read More
In web development, interactivity is key to providing a memorable user experience. One common technique used to add interactivity is hovering over images or icons to reveal more information or change the appearance. Translating an image or icon by hovering over it is a great way to add some movement and interest to your website. In this article, we will learn how to translate an image or icon on hover. To perform this task, we will learn different approaches using only HTML and CSS. Different Methods to Translate an Image or Icon on Hover Method 1: CSS Transitions The first ... Read More
A circle is a closed shape formed by tracing a point that moves in a plane such that its distance from a given point is constant. In this article we will check if two given circles touch or intersect each other. We will be given the two circles with center 1 i.e (x1, y1) and center 2 i.e (x2, y2) and radius R1 and R2. We need to check if the given circle collides with the other circle or not and hence five possible situation arises as mentioned below − Circle 2 lie inside circle 1 Circle 1 ... Read More
In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. A matrix having non-zero elements only in the main diagonal (running from the upper left to the lower right) is called as diagonal matrix. As per the problem statement we have to a matrix and we have to check whether that given matrix is a diagonal matrix or not. Let’s deep dive into this article, to know how it can be done by using Java ... Read More
In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. If the absolute value of the diagonal element in a matrix is larger than or equal to the sum of the absolute values of the other components in that row, the matrix is said to be diagonally dominating. When resolving systems of linear equations in numerical analysis, this characteristic is helpful. Even if the coefficients of the equations are not precisely known, it guarantees that ... Read More
A circle is a closed shape formed by tracing a point that moves in a plane such that its distance from a given point is constant. In this article we will check how to form the equation of circle from given radius and centre. We will be given a circle with centre i.e (x1, y1) and radius r. We need to form the equation of circle from given radius and centre. The equation of the circle is given by formula − $$\mathrm{(x-x1)^2\:+\:(y-y1)^2\:=\:r^2}$$ Now after expanding and arranging the equation we get − $$\mathrm{(x)^2\:–\:(2*x1*x)\:+\:(y)^2\:-\:(2*y1*y)\:=\:(r)^2\:-\:(x1)^2\:-\:(y1)^2}$$ Let’s start! To show you ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP