Learn free java-convert tutorials


How to Convert Float to String or String to Float in java with examples

August 15, 2018 ·  2 min read

Float and String are data types of objects used to store different values. In Applications, UI form can have input text value which accepts the floating value, To deal with form submission and do manipulation of this float values, We have to do the conversion for String to float or float to String in Java. This tutorial talks about various ways to do this conversion. float values example float f = (float) 4....


How to convert String to Long or Long to String in java with examples

August 13, 2018 ·  3 min read

Long, String objects Long is an object which holds larger values. It is a wrapper class for primitive type long. if you are initializing long values, you need to add l to its value. The string is a class to represent a group of characters enclosed in a double quotes. if the string contains non-numeric characters, converting this non-numeric values to long or any numeric data type results in NumberFormatException....


How to convert String to Double or Double to String in java | Double example

August 12, 2018 ·  2 min read

Double String example The string is a sequence of characters enclosed in double quotes. Double is numeric data type of double precision floating values which hold double primitive types. Both have different values for a different purpose. Sometimes, In our applications, It is required to convert a string to double or vice-versa in java. This is a basic common requirement for knowing developers. Double holds 64 bits numbers, double value has d or D added to its value....


How to convert BigInteger to BigDecimal or BigDecimal to BigInteger in Java with example

August 12, 2018 ·  2 min read

In this Blog post, We are going to learn How to Convert BigInteger from/to BigDecimal with examples. BigInteger and BigDecimal examples Integer, Long and Double is basic numeric types which are used to store numeric values up to a limited range of values for basic arithmetic operations.BigInteger is used to store the large numeric values.BigDecimal is used to store the correct precision and rounding numbers where precision is important in financial applications....


How to convert BigDecimal to String or String to BigDecimal in java with examples

August 12, 2018 ·  3 min read

In this Blog post, We are going to learn How to Convert String from/to BigDecimal with examples. You can also check my previous posts on BigInteger class in java BigInteger Class tutorials Convert BigInteger to/from String Convert BigInteger to/from BigDecimal Convert BigInteger to/from Integer/Int java.math.BigDecimal class BigDecimal is a class in java.math package of java language. This is data type which can be used in the financial and ERP applications where precision of a number is important....


How to Convert BigInteger to String or String to BigInteger in java with examples?

December 26, 2011 ·  3 min read

In this Blog post, We are going to learn How to Convert BigInteger from/to String with examples. You can also check my previous posts on BigInteger class in java BigInteger Class tutorials Convert BigInteger to/from BigDecimal Convert BigDecimal to/from String Convert BigInteger to/from Integer/Int BigInteger Object in Java Conversion of BigInteger to String is one of the days to day task for java programmer. A few days back I have the need to convert the BigInteger to Integer in my programming....


How to convert BigInteger to Integer or Integer to BigInteger in java?

December 26, 2011 ·  3 min read

In this Blog post, We are going to learn How to Convert Integer/int from/to Biginteger with examples. You can also check my previous posts on BigInteger class in java BigInteger Class tutorials Convert BigInteger to/from String Convert BigInteger to/from BigDecimal Convert BigDecimal to/from String java.math.BigInteger Class BigInteger is a class defined in java.math package. Integer class is a wrapper of primitive type int and defined in java.lang package....


Convert of String to Integer or Integer to String in java

December 4, 2011 ·  2 min read

As a developer, in the day to day programming, we have encountered in a number of situations to convert from String to Integer or vice verse. String object holds a sequence of characters Integer object stores the numeric values. The string should hold valid int value. if an invalid numeric value is presented in the string, then NumberFormatException is thrown. For this, you have to handle using try and catch blocks....