Category Java
Convert String to Long in Java

In this tutorial, we will learn how to convert Java String to wrapper Long class object or primitive type long value easily. There are some situations where we need to convert a number represented as a string into a long…
How to Convert Int to String in Java

In this tutorial, we will learn how to convert primitive int or Java wrapper integer class object to string in Java. Sometimes, we need to convert values from one data type to another, under certain situation. For example, if we…
Convert String to Int in Java

In this tutorial, we will learn how to convert string to primitive int or integer object in Java easily. There are some situations where we need to convert a number represented as a string into an integer type in Java.…
Java Program to Swap Two Strings
In this tutorial, we will write a Java program to swap two strings without using the third or temporary variable. Before going to this approach, we will first learn how to swap two strings using the third variable in Java.…
Anagram in Java with Program
In this tutorial, we will know what is anagram in Java and how to check two strings are an anagram or not. Interviewer frequently asks anagram Java program in Java interview. So, let’s understand. Anagram An anagram is a word…