In this tutorial, we will learn how to initialize a Java Array. What is an Array in Java? Arrays in Java are objects that can store elements of the same data type. In a Java Array,.... Read More
This tutorial would help in learning the following: Conversion of numbers from hexadecimal-system (0 to 9 and A to F) to decimal-system (using 0 to 9) Re-conversion of characters .... Read More
In the last tutorial, we learned about the sum of the principal diagonal of a matrix, in this tutorial we will see how to find the sum of the secondary diagonal of a matrix in Java.... Read More
Here we are going to have a brief knowledge Difference between ArrayList.clear() and ArrayList.removeAll() in Java. An ArrayList is a re-sizable array we can also call it a dynamic.... Read More
In this tutorial, we will be discussing the problem of how to get a date without time in java. Also, we will be displaying the date in a formatted way. We will be understanding how.... Read More
Today we will see how to count the number of occurrences of a particular element in an Array in Java. Example: If the array is : 10 15 17 19 19 15 10 .... Read More
Hi coders! I am up with a topic known as ArrayList. It is a class which implements List interface of the Collection framework. ArrayList is present in the java package known as uti.... Read More
Today we will see how to round off a number to the nearest multiple of 10 in Java. Example: 13 will be rounded off to 10. 27 will be rounded off to 30. 55 will be rounded off to 50.... Read More