Java program to convert a string to arraylist. This post will show different ways to convert a string to arraylist in java
ReadJava program to convert a byte value to string. In this post, we will learn two different ways to do the convertion.
ReadJava program to convert a character to string in different ways. We will learn two different ways to convert a character to a string in Java.
ReadJava program to convert comma separated strings to an ArrayList. This post will show you three different methods to convert comma separated strings to an ArrayList in Java.
ReadJava program to iterate over the hashset items in three different ways. We will use an iterator, for loop and forEach to do that.
ReadJava program to remove specific items or all items from a HashSet. Learn it with different examples.
ReadJava program to add items to a HashSet. We will use the add method of HashSet to add new items to a HashSet.
ReadJava program to find the maximum element in a HashSet. we can either run a loop and find out the maximum or we can use the predefined method max defined in Collections.
ReadLearn how to convert a negative number to positive in Java. We will learn two different ways to do the conversion in Java. We can multiply the number by -1 or we can use the Math.abs() method.
ReadHow to get the epoch timestamp in Java. This post will show you number of milliseconds and seconds passed since epoch.
Read