How to convert Java String to int?

In this tutorial, we have discussed only the efficient ways to convert Java String to int among the ‘n’ number of conversion ways available. Convert using Integer.parseInt() Using this static method available in the Integer class is the most efficient solution among other solutions. This returns the primitive int object representing the specified String value. … Read more

How to convert Java int to String ?

In this tutorial, we have discussed only the efficient ways to convert Java int to String among the ‘n’ number of conversion ways available. Convert using Integer.toString(int) Using this static method available in the Integer class is the most efficient solution among other solutions. This returns the String object representing the specified Int value with … Read more

How to use Java log4j (With example)

Apache Log4j: Log4j is a fast, reliable and flexible logging framework in java, distributed under the Apache software license. Configuring Log4j: Log4j core can be configured using log4j.properties file, which involves defining Appender, assigning the Level, and specifying Layout objects(Format of the log messages). This file keeps configuration properties as a key value pair. By … Read more