Programming Articles - Page 277 of 2501

Simple Bill Splitter Application using Java Servlets

Shriansh Kumar
Updated on 12-May-2023 17:45:25

483 Views

Servlets are small java modules that are used on server side of a web connection to enhance the functionality of web server. All the methods and classes for creating a servlet are available in ‘javax.servlet’ and ‘javax.servlet.http’ packages. Hence, it is important to import them into your program before working with the servlet. In this article, we will develop a simple bill splitter application using Java Servlets. Before starting, make sure you have installed the NetBeans IDE and Apache Tomcat server. Steps to build Simple Bill Splitter To develop this application follow these steps − Step 1 Open your ... Read More

Separators in Java

Shriansh Kumar
Updated on 12-May-2023 17:41:53

2K+ Views

Separators are one of the building blocks of a Java program that helps us to differentiate the regions of the block of code and arrange groups of codes or statements. They help us in defining scopes of particular variables and methods. Have you ever missed a bracket while defining a method or semicolon at the end of a statement? We all do this silly mistake every time we code. In this article, we are going to explore the importance of these separators and what would be the consequences if we neglect them. Seperators available in Java Being a programmer we ... Read More

Java Program for Minimum product subset of an array

Shriansh Kumar
Updated on 12-May-2023 17:23:29

556 Views

Array is a linear data structure that is used to store a group of elements with similar datatypes. It stores data in a sequential manner. Once we create an array we can’t change its size i.e. it is of fixed length. The problem statement states that for a given array we have to find the minimum product of its subset. In this article, we will try to find the solution to the given problem. Program for minimum product of subsets Example 1 Let’s try to understand the problem and possible solution through an example. For the above ... Read More

Serializable Interface in Java

Shriansh Kumar
Updated on 12-May-2023 16:41:48

2K+ Views

The Serializable interface provides the facility to serialize an object. It does not define any methods and member variables. When a class implements serializable interface it simply indicates this class and its sub-classes can be serialized. The serializable interface serves to achieve the Serialization and Deserialization of an object. In this article, we will discuss the use of Serializable Interface in Java with examples. Serialization and Deserialization in Java Serialization is a mechanism used to represent a given object into a sequence of bytes and its opposite is deserialization which represents a sequence of bytes into an object. Other ... Read More

Mobile

Slicker Algorithm to Find the Area of a Polygon in Java

Shriansh Kumar
Updated on 12-May-2023 16:23:51

516 Views

The term ‘Polygon’ originated from the Greek words ‘Poly’ which means ‘many’ and ‘gon’ which means ‘angle’. A polygon is a two dimensional closed plane shape created by connecting three or more than three straight lines. For example, triangle, quadrilateral, hexagon and so forth. Although there are many ways to find the area of a polygon in this article, we will use the slicker algorithm for this purpose. Slicker Algorithm to Find Area of a Polygon Slicker Algorithm Two facts you must know, First, according to mathematical convention the y-direction points upwards are always positive. Second, according to computer ... Read More

How to display notnull rows and columns in a Python dataframe?

Manthan Ghasadiya
Updated on 12-May-2023 16:14:13

7K+ Views

In this tutorial, we will learn how to display notnull rows and columns in a Python dataframe with the help of some libraries. We will be using the Pandas library in this tutorial. A dataframe is a data structure in pandas similar to an Excel sheet or a SQL table. It is a two-dimensional labeled data structure that can hold multiple columns of potentially different types of data such as integer, float, string, etc. Pandas provides a powerful data structure, "dataframe" and other useful methods to work on huge data. Approach 1 One way to display the non-null rows and ... Read More

How to display most frequent value in a Pandas series?

Manthan Ghasadiya
Updated on 12-May-2023 16:13:24

9K+ Views

In this tutorial, we will learn how to display the most frequent value in a Pandas series with the help of Python. We will be using the Pandas library in this tutorial. A series is a data structure in pandas that is similar to a column in an Excel sheet or a SQL table. It is a one-dimensional labeled data structure that can hold different data types such as integer, float, string, etc. The most frequent value is the one that appears most often in the series. In mathematical terms, it is the mode of the data. Approach 1 One ... Read More

How to delete only one row in csv with Python?

Manthan Ghasadiya
Updated on 12-May-2023 16:12:31

23K+ Views

In this tutorial, we will learn to delete only one row in csv with python. We will be using the Pandas library. Pandas is an open-source library for data analysis; it is one of the most popular python libraries to investigate the data and insights. It includes several functionalities to perform operations on data sets. It can be combined with other libraries like NumPy to perform specific functions with the data. We will use the drop() method to delete the row from any csv file. In this tutorial, we will illustrate three examples to delete the row from the csv ... Read More

Revolutionize the TCL Scripting Skills: Master Arithmetic Operations with the Switch Statement!

sudhir sharma
Updated on 12-May-2023 13:33:45

379 Views

Introduction Welcome to this informative article on how to create a TCL script that performs arithmetic operations using switch statements. As an integral aspect of the powerful and versatile TCL programming language, mastering switch statements is crucial for optimizing code efficiency and control flow within your scripts. In this post, we will explore the basics of switch statements in TCL scripting and learn how to use them effectively when performing various arithmetic operations such as addition, subtraction, multiplication, and division. Understanding Switch Statements in TCL Scripting Switch statements are a powerful control structure in the TCL scripting language, allowing ... Read More

How to make Violinpot with data points in Seaborn?

Manthan Ghasadiya
Updated on 12-May-2023 16:09:38

462 Views

In data analysis and visualization, there are many types of plots that are used to convey information in a concise and meaningful manner. One of the popular types of plots is the Violin plot, which is useful for visualizing the distribution of a numeric variable for different categories or groups. The Violin plot is similar to a box plot, but it provides more information about the distribution of the data by displaying a density plot on top of the box plot. In this tutorial, we will learn how to create a Violin plot with data points in Seaborn using our ... Read More

Advertisements