java

Java Arrays deepEquals method explanation with example

Java util Arrays deepEquals method explanation with examples. Learn how to use deepEquals method to compare two arrays and the difference between deepEquals and equals.

Read
java

Java Arrays binarySearch method explanation with example

Java util Arrays binarySearch method explanation with examples. By using this method, we can search for an element in an array by using binary search algorithm.

Read
c

4 different C program to check if a number is Armstrong number or not

C program to check if a number is Armstrong number or not. I will show you 4 ways to check if a number is Armstrong or not in C programming language.

Read
python

Introduction to yield in Python with example

Python introduction to yield. yield keyword is used to return some value from a function in Python. Learn about yield and difference between return yield.

Read
python

Learn to get the class name in Python in 2 ways

Python program to get the class name in two different ways. We can use this method to print the class names in log files and this becomes easy to debug log files.

Read
python

How to convert a decimal value to hexadecimal in Python

Python program to convert a decimal value to hexadecimal. We will learn 4 different ways to convert a decimal value to hexadecimal like by using a separate method, by using a recursive method, by using hex() etc.

Read
python

4 ways to convert a datetime object to epoch in Python

Python program to convert a datetime object to epoch. We will learn 4 different ways to do the conversion of datetime to epoch.

Read
java

4 different Java program to check if a number is a sunny number or not

Java sunny number program. This program will check if a user given number is a sunny number or not and how to print sunny numbers in a range.

Read
java

Java program to check if a number is a spy number or not

Java spy number program. This java program will take one number as input from the user and it will check if that number is a spy number or not.

Read
java

Java Math.random() method example to create random numbers

Java Math.random() method explanation with examples. Learn to generate random numbers and random numbers in range by using the random() method.

Read