How to Convert Boolean to String in Java

In this tutorial, we will learn how to convert a primitive data type boolean to a non primitive data type string in Java easily. Sometimes, we need to convert values from one data type to another, under certain situation. Therefore, we will know two different ways to convert boolean to … Read more

How to Convert String to Boolean in Java

In this tutorial, we will learn how to convert string to primitive type boolean or Boolean wrapper class object in Java easily. There are three ways to convert a string to a boolean data type. They are as follows: Convert using Boolean.parseBoolean() Convert using Boolean.valueOf() Converting using new Boolean(String).booleanValue() Convert … Read more

How to Convert Char to String in Java

In this tutorial, we will learn how to convert a primitive data type char to a non primitive data type string in Java easily. Sometimes, we need to convert values from one data type to another, under certain situation. Therefore, we will know two different ways to convert char to … Read more

How to Convert String to Char in Java

In this tutorial, we will learn how to convert string to char data type in Java easily. There are mainly two ways for converting a string into char data type in Java. They are as: Convert using charAt() method Convert using toCharArray() method To convert string to a char data … Read more

How to Convert Double to String in Java

In this tutorial, we will learn how to convert primitive double or Java wrapper double 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 need to append a double value to a JTextArea, first … Read more