4 Python examples to print all even numbers in a given range

4 Different ways to print the even numbers in a given range. We will use a for loop, while loop, jump in between the numbers with a while loop and how to use the range function.

Read

Python 3 program to count the number of blank spaces in a file

In this tutorial, we will learn how to find the total number of blank spaces in a text file. This program will teach you basic file operations in python. You will learn how to iterate the lines of a text file and how to read each word and each character for each line.

Read

Python program to find the circumference of a circle

This python program will show you how to find the circumference of

Read

Java program to find the sum of all digits of a number

In this tutorial, we will learn how to find the sum of all digits of a number in Java. Algorithm we are using is as below :.

Read

Java program to calculate the area and perimeter of a rectangle

In this tutorial, we will learn how to find the area and perimeter of a rectangle. To find the area and perimeter, we need only height and width of the rectangle. Area of a rectangle is 'height * width' and perimeter is ' 2* ( height + width )' .

Read

Java 8 Stream min and max method examples

In this tutorial, we will learn how to use min and max methods of Java 8 Stream to find the minimum and maximum element in a list. For both 'max' and 'min', we will pass one 'Comparator' using which each item will be compared to each other to find the minimum or maximum values.

Read

Java program to get the maximum number holder Student

In this tutorial, we will create and store some student's details and find out the Student with highest marks. We have two classes in this example. First one is the 'Student.java' class and second one is the 'Main.java' class. 'Student.java' will hold the informations about a student. And, 'Main.java' is used to do other tasks like create a student, find the top student etc.

Read

Java program to find the circumference and area of a circle

In this tutorial, we will learn how to find the area and circumference of a circle using Java. We only need the radius of the circle to find both of these values. Area is 'PI*radius*radius'and circumference is '2*PI*radius'. Let's take a look how to calculate these values :.

Read

Java program to check if a number is perfect or not

In this tutorial, we will learn how to find the maximum and minimum values in a list within range. Steps we are using in this Example program is as below :.

Read

Java program to find maximum and minimum values of a list in a range

In this tutorial, we will learn how to find the maximum and minimum values in a list within range. Steps we are using in this Example program is as below :.

Read