java

How to overload main method in Java

We can overload the main method in Java. We can create another main method with different arguments. Let's see how to do that.

Read
java

Write a number guessing game in Java

Java program to write a number guessing game. This program will take one number as input from the user for a number of times and try to match with a secret number.

Read
java

Java example program to find the area of a Parallelogram

Java program to find the area of of a parallelogram. The program will take base and height as inputs from the user and print the area.

Read
python

How to create a color choosing dialog in tkinter python

Python tkinter example to create a color choosing dialog. We can use tkinter.colorchooser module to create a color chooser dialog.

Read
python

Python program to check if two sets are equal in 3 ways

Python program to check if two sets are equal or not in 3 different ways. We will learn how to use the equal to operator, not equal to operator, symmetric_difference() method and also the difference() method.

Read
C++

C++ program to return an array from a function using a structure

C++ program to return an array from a function using a structure. We can use a pointer or we can define a structure that includes an array.

Read
python

How to write a simple stopwatch in python

Python program to write a stopwatch. This stopwatch will record the time and once stopped, it prints the time spent.

Read
C++

C++ program to find the nearest smaller number to the left side in an array

C++ program to find the nearest smaller number to the left side in an array. This program will take one array of numbers as the input and find the nearest smaller.

Read
c

What is compilation and how compilation process works in C

What is compilation and how it works in C. This post will show you how compilation works with each step examples.

Read
python

How to insert an item to the start of an Ordered dictionary in Python

Python program to insert items to the start of an ordered dictionary. Ordered dictionary remembers the key-value pairs inserted.

Read