## How to check if a date is valid or not in python

Python program to check if a date is valid : In this tutorial, we will check if a date is valid or not usng python. Solution : 1. Get the input from the user 2. Input should be in the form of dd/mm/yy 3. Extract the inputs in different variables 4. use ‘datetime’ module to […]

## Count number of digits in a number in Python

Count the number of digits in a number using python : Using python, count the number of digits in a number. Get the input from user and print out the result. We will show you two different ways to calculate digits . Solution 1 : 1. Take the user input , create one variable to […]

## Find average of numbers in a list using python

Calculate the average of numbers in a list using python : In this tutorial, we are going to show you three different ways to calculate average of numbers of a list in python.We are using python3 version 3.6.1 . You can check your python3 version by running python3 –version command on a terminal. 1. We […]

## Java program to find the counts of each character in a String

Java Program to find character counts in a String : In this tutorial, we will find the count of each characters in a given string. Solution : 1. First get the string input from the user 2. Create one hashmap with key as ‘character’ and value as ‘integer’ . Count of each character will be […]

## Java Final – Final Variables, Final Methods and Final Class

”final” keyboard can be used with methods, classes and variables in Java. Each use has different meaning that we are going to discuss in details in this tutorial : final variable, final method and final class. 1. Final Variable : final variables are variables that cannot be changed i.e. constant. It is really good practice […]

## Java program to check if a Matrix is Sparse Matrix or Dense Matrix

What is a sparse matrix ? A sparse matrix is a matrix in which most of the values are zero. Similarly a matrix with maximum non-zero values is known as dense matrix. In this tutorial, we will learn how to check if a matrix is sparse or not in java. Sparsity of a matrix : […]

## Java Program to convert Decimal to Binary : Java Tutorial 3

Java program to to convert Decimal to Binary Number : In this tutorial, we will check how to convert a decimal number to binary . We will use three different methods to convert one decimal number to its binary form. Decimal : For denoting integer and non-interger numbers, decimal number system uses 10 different digits […]

## Java 8 development with Android Studio 3.0 -Part 1

Java 8 Development using Android Studio : Using Android Studio 3.0 preview 1 and later, some subset of Java 8 language features can be used on Android projects. Some features are compatible with all API levels and some are only for API level 24 and higher. Previously for using Java8 on Android projects, jack toolchain, […]

## Java 8 Lambda Expression – Java Tutorial 2

Lambda expressions in Java 8 : Lambda expressions are introduced in Java 8. There are various reasons why lambda expression was added . I will try to explain you with a simple example how the code is without lambda expression and how it can be changed using lambda expression : In this exmaple we will […]