Browsed by
Category: Core Java

Convert String to Stream to String

Convert String to Stream to String

In java programming language, String is most widely used class. In certain situations we need to convert String to stream and vice versa. One such scenario is while reading data from a file, we have to convert stream to String. In this blog, we will see how to convert String to Stream and vise versa.You can learn more about String and other classes related with String like StringBuffer and StringBuilder in detail in String in java, StringBuffer in java and StringBuilder in java.

Read More Read More

Convert String to int in java

Convert String to int in java

String and Integer are one of the most use classes in java programming. Developers often have to convert String to Integer and vice-versa while interacting with different APIs. Java provides auto boxing features to convert primitive data type to corresponding classes like int to Integer, double to Double and so on, However, developers need to write their own logic or use third party APIs to convert String to int.

Read More Read More