In electrical substations, an interconnected system of multiple capacitors is used for improving the power factor of the system, this interconnected system of capacitors is referred to as a capacitor bank. In short, a capacitor bank is device which consists of multiple capacitors connected in parallel or series and provide reactive power for improving the power factor of the electrical system. Capacitor banks are important components in utility and industrial substations as they are useful in improving power factor and efficiency of the power supply system. Read this article to learn the basic concepts related to a capacitor bank, ... Read More
In electrical power systems, different types of switchgear devices are used such as circuit breakers, AB switches, isolators for switching and protection purposes. These switching devices play an important role in power systems. There are two common types of switch devices used in electrical power systems are AB Switch (Air Break Switch) and Isolator. Although, the primary purpose of both AB switch and isolator is similar, but they are completely from each other in construction, operation, and many other aspects. For an electrical engineer, it is very essential to understand the differences between AB switch and isolators to design ... Read More
Residual Current Circuit Breaker (RCCB) is a type of circuit breaker used in electrical circuits for protection purposes. The primary function of an RCCB is to detect a leakage in the circuit current. If there is any leakage in the current, the RCCB can interrupt the circuit and prevent the fault to be happened. Read this article to understand the functions, working principle, advantages, and applications of RCCB. What is an RCCB? RCCB (Residual Current Circuit Breaker) is a protecting device that detects any leakage current in the circuit and interrupt the circuit current. When a fault occurs in ... Read More
ArrayList to ArrayList Instead of the typed parameter in generics (T) you can also use “?”, representing an unknown type. These are known as wild cards you can use a wild card as − Type of parameter or, a Field or, a Local field. Using wild cards, you can convert ArrayList to ArrayList as − ArrayList stringList = (ArrayList)(ArrayList)(list); Example import java.util.ArrayList; import java.util.Iterator; import java.util.ListIterator; public class ArrayListExample { public static void main(String args[]) { //Instantiating an ArrayList object ... Read More
To find the third largest number of the given array, first of all, sort the array.Sorting an arrayCompare the first two elements of the arrayIf the first element is greater than the second swap them.Then, compare 2nd and 3rd elements if the second element is greater than the 3rd swap them.Repeat this till the end of the array.After sorting an array print the third element from the end of the array.ExampleLive Demopublic class ThirdLargestNumberInAnArray { public static void main(String args[]){ int temp, size; int array[] = {10, 20, 25, 63, 96, 57}; size = array.length; for(int i = 0; i
In this article, we will understand how to print square star pattern. The pattern is formed by using multiple for-loops and print statements.Below is a demonstration of the same −InputSuppose our input is −Enter the length of a side : 8OutputThe desired output would be −The square pattern : * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ... Read More
In the field of data structure, the vector is a growable class array of a particular object. The vector class falls in the legacy class which is fully compatible with the collections. In java.util package, the List interface can use all the methods listed here. Here is the initial capacity is 10 and the general method is: Vector v = new Vector(); The compare() method accepts two parameters and then compare each other by using Java environment logic. In this article today, we will learn about the sorting process of a 2D array set across the columns. Algorithm to ... Read More
Java Language is one of the most used popular object - oriented programming language in present world. Class concept is one of the most important feature in Object - oriented languages. A Class is a like a blue print of an object. For example, when we want to build a house we first create a blue print of the house in other words we create a plan showing how we are going to build the house. Based on the plan we can create a number of houses. Similarly using class, we can create a number of objects. A class ... Read More
Let’s say we have the following string, that has some letters and numbers.String str = "9as78";Now loop through the length of this string and use the Character.isLetter() method. Within that, use the charAt() method to check for each character/ number in the string.for (int i = 0; i < str.length(); i++) { if (Character.isLetter(str.charAt(i))) count++; }We have set a count variable above to get the length of the letters in the string.Here’s the complete example.Example Live Demopublic class Demo { public static void main(String []args) { String str = "9as78"; int count ... Read More
Introduction In Java, a list is an ordered collection of elements that allows duplicates. Sometimes, we may need to combine two lists into one list. Concatenating two lists means joining the elements of the two lists to form a new list containing all the elements of both lists. There are various ways to concatenate two lists in Java, including using loops, streams, and built-in methods. In this context, we will explore different approaches to concatenate two lists in Java. One approach is to use the addAll() method provided by the List interface. This method adds all the elements of one ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP