Posts from Java

How to initialize an array in Java

By Tishya Thakkar

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

Hexadecimal to Decimal conversion in Java

By snormy

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

Sum of secondary diagonal of a matrix in Java

By Akash Tripathi

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

Difference between ArrayList.clear() and ArrayList.removeAll()

By Shakshi Parekh

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

How To Get Date without Time in Java

By Priyam Patel

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

Occurrence of a particular element in an Array – Java

By Akash Tripathi

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

Average value of an ArrayList in Java

By Anubhav Srivastava

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

Rounding off a number to nearest multiple of 10

By Akash Tripathi

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

Related Posts