Saba Hilal has Published 63 Articles

Java program to read a large text file line by line

Saba Hilal

Saba Hilal

Updated on 08-Nov-2024 22:30:45

678 Views

This article includes the way to read text files line by line in Java. Here, the three different methods are explained with examples. Storing a file in text format is important especially when data from one structured /unstructured form is transferred to another form. Therefore, basic file transfer systems integrate ... Read More

Java Program to Print the Months in Different Formats

Saba Hilal

Saba Hilal

Updated on 11-Sep-2024 11:02:56

795 Views

In this article, we are going to use various approaches for formatting the months using different libraries of Java programming language. There are several ways to display months. Sometimes the months are written as numbers, sometimes the months are written in long form or they are written in short forms. ... Read More

Java program to print Swastika by taking input from user

Saba Hilal

Saba Hilal

Updated on 27-Aug-2024 18:47:37

1K+ Views

Swastika is a religious symbol of Hinduism, Buddhism, and Jainism. In this article, we will learn to print Swastika by taking user input. Here, are three different approaches for making this design using Java. In all the approaches, the size of the Swastika is decided by the user. The user ... Read More

Java Program to open the Command Prompt and Insert commands

Saba Hilal

Saba Hilal

Updated on 24-Jun-2024 15:53:26

8K+ Views

This article uses various approaches for selecting the commands inserted in the opened command window through the Java code. The command window is opened by using ‘cmd’. Here, the methods of doing the same are specified using Java code. The Command window is first opened using the Java program. It ... Read More

Python program to print all Strong numbers in given list

Saba Hilal

Saba Hilal

Updated on 08-Aug-2023 18:32:38

299 Views

A number is said to be a Strong number if the factorials of its individual digits are found and then added together and the total sum calculated is equal to the number itself. Here, in this Python article, using three different examples, the different methods of finding the Strong numbers ... Read More

Python program to input a comma separated string

Saba Hilal

Saba Hilal

Updated on 28-Jul-2023 18:20:36

4K+ Views

When a text string is entered or given as input, it may have commas in between. Sometimes the task is to separate all the comma-separated portions of a sentence or a text string. These portions may have single word or multiple words. These string portions may be further entered as ... Read More

Python program to print all positive numbers in a range

Saba Hilal

Saba Hilal

Updated on 28-Jul-2023 18:13:28

629 Views

Sometimes the task is to select only the positive numbers from a given range. Here, in this Python article, first, the range is taken as input and then the negative as well as positive integers within this range are chosen. In this Python article, from these numbers only the positive ... Read More

Python program to print all negative numbers in a range

Saba Hilal

Saba Hilal

Updated on 28-Jul-2023 18:10:20

516 Views

Sometimes the task is to select the negative numbers from a given range. Here, in this Python article, first, the range is taken as input and then the integers within this range are specified. From these numbers only the negative numbers are then selected using the different methods in 4 ... Read More

How to Make a Time Series Plot with Rolling Average in Python?

Saba Hilal

Saba Hilal

Updated on 28-Jul-2023 17:54:52

1K+ Views

In this article, we will look at two methods for making a Python time series plot with a rolling average. Both strategies make use of well-known libraries like Matplotlib, Pandas, and Seaborn, which offer strong capabilities for data manipulation and visualization. Following these methods will enable you to visualize time ... Read More

How to Make a Bell Curve in Python?

Saba Hilal

Saba Hilal

Updated on 14-Jul-2023 17:17:33

2K+ Views

It is a well-known phenomenon that if we take the average of many observations of a random variable, the distribution converges to a normal distribution as the number of observations is increased. For example, if we throw two dice and calculate the sum of the random values that show on ... Read More

1 2 3 4 5 ... 7 Next
Advertisements