Count Alternating Subarray

Revathi Satya Kondra
Updated on 17-Jul-2024 19:00:08

46 Views

The Count Alternating Subarrays are used to count the number of subarrays where no two adjacent elements are similar. we can also call these subarrays as alternating subarrays. Problem Statement Before understanding what is "Count Alternating Subarrays" let's see what is a sub-array, and alternating sub-arrays. A subarray is part of an array formed by removing some or no prefixes of the array and removing some or no suffix elements of the given array. While dividing an array into multiple sub-arrays there ... Read More

Java Program to add minutes to current time using Calendar.add() method

Samual Sam
Updated on 17-Jul-2024 13:12:22

2K+ Views

Java provides a built-in class called Calendar that allows developers to work with dates and times in their applications. The Calendar class provides various methods to manipulate dates and times, such as adding or subtracting days, months, years, hours, minutes, and seconds. Problem Statement Write a Java program to increment the current time by 10 minutes using the Calendar class. Output Current Date = Thu Nov 22 16:24:27 UTC 2018 Updated Date = Thu Nov 22 16:34:27 UTC 2018 Steps to add minutes to current time using Calendar.add() method Below are the steps to add minutes to current time using ... Read More

Difference between List, Set, and Map in Java

Shirjeel Yunus
Updated on 17-Jul-2024 11:19:54

20 Views

Java has a java.util package that consists of a Collection interface. This interface has many sub-interfaces and classes like List, Set, and Map. In this article, we will learn the difference between List, Set, and Map. What is List Interface? Java has a Collection interface and List is the sub-interface of Collection. This interface consists of methods like insert, update, delete, and search. Developers are also allowed to insert null elements. List Interface Example The List interface can be found in the java.util package. An example of a List is given below − import java.util.*; public class ListExample { ... Read More

Java Program to Calculate the Compound Interest

AmitDiwan
Updated on 17-Jul-2024 11:12:51

13K+ Views

In this article, we will understand how to calculate the compound interest. Compound interest is calculated using the following formula − Principle*(1+(rate / 100))^time – Principle Compound Interest − The percentage interest charged on principal and accrued interest. Rates are higher compared to simple interest. Problem Statement Write a Java program to calculate the compound interest using the formula. Below is a demonstration of the same − Input Enter a Principle number : 100000 Enter Interest rate : 5 Enter a Time period in years : 3 Output The Compound Interest is : 15762.50000000001 Algorithm Below are the steps to ... Read More

Difference between AWT and Swing in Java

Shirjeel Yunus
Updated on 17-Jul-2024 10:39:54

11 Views

Java is a secure, powerful, and reliable language which developers can use to develop different types of applications that can run on desktop, web, and mobiles. Developers can develop customized applications with the help of GUI components. These GUI components are available in AWT and Swing and in this article, we will discuss the differences between AWT and Swing. What is AWT in Java? The full form of AWT is Abstract Window Toolkit. This is an API which developers use to develop different types of GUI applications. Sun Micro Systems developed and launched AWT in 1995. A large number of ... Read More

Difference Between Product-Based and Service-Based Companies

Shirjeel Yunus
Updated on 17-Jul-2024 10:36:24

12 Views

Companies are of many types but the two main types are product-based and service-based. Product-based companies sell different types of products while service-based companies sell different types of services. There are companies that sell both products and services. In this article, we will see the difference between product-based and service-based companies. What are Product Based Companies? Product-based companies are the ones that are responsible for manufacturing and selling different types of physical products which can be groceries, electronic items, fashionable items, and many more. Companies have to meet the requirements of their customers on the basis of their feedback. These ... Read More

How to create a signup form with HTML and CSS?

AmitDiwan
Updated on 16-Jul-2024 17:55:02

13K+ Views

In this article, we will be understanding How to create a signup form with HTML and CSS. A sign-up form allows any new user visiting the website to register. It includes adding an email-id, password, repeat password, and clicking on the Sign-Up button to register. To allow the browser to save the password, click the Remember Me. You can also provide a Terms & Policies link so the users can first read the registration terms. Let us see how to create a signup form with HTML and CSS. Steps to Create Sign Up Form We are following 2 steps to ... Read More

Difference between Big Data and Data Analytics

Shirjeel Yunus
Updated on 16-Jul-2024 11:12:49

21 Views

Big Data includes a large volume of structured and unstructured data which is very complex. Traditional data management tools cannot be used to manage such a large amount of data. This is the reason that Big Data tools were developed to manage it. Data analytics is a process of extracting useful information from the raw data which helps businesses to make decisions. There are many differences between Big Data and Data Analytics and we will look into them in detail. Big Data Big data consists of a large volume of data which can be structured, unstructured, or semi-structured. There are ... Read More

Difference Between Big Data and Predictive Analytics

Shirjeel Yunus
Updated on 16-Jul-2024 11:09:36

17 Views

Big data deals with a large volume of data which can be structured, unstructured, or semi-structured. The data is continuously generated so different types of tools like Hadoop are used to store and process the data. Predictive analytics is a type of analytics in which historical data is used for prediction. There are many differences between big data and predictive analytics and we will study them in detail in this article. Big Data Big data deals with a large volume of data that is generated continuously. It uses many tools to store, manage, and process the data. Big data is ... Read More

Difference between Predictive and Adaptive Development

Shirjeel Yunus
Updated on 15-Jul-2024 14:42:44

32 Views

The Software Development Life Cycle (SDLC) has gone through many changes and many effective ways resulting in the efficient and fast development of software applications. Predictive and Adaptive development are the methods used in developing software applications. In this article, we will see the difference between predictive and adaptive development. What is Predictive Development? Predictive development is an old method but it is still being used in software development. The main aim of predictive development is to complete the process of developing a software application and matching all the goals. This approach has many problems when changes in the project ... Read More

1 2 3 4 5 ... 10873 Next
Advertisements