Simple example how to convert a String object InputStream object in Java using ByteArrayInputStream class.


This tutorial will show you how display double in 2 decimal points in Java using String format method and DecimalFormat class.


Autoboxing and Unboxing in Java

  • 12 October 2016
  • ADM

In Java, autoboxing is the automatic conversion between the primitive types and their corresponding object wrapper classes. Unboxing is the other way around.


How to convert String to long in Java using Long.parseLong and Long.valueOf methods. Simple example provided.


How to convert String to int in Java using Integer.parseInt and Integer.valueOf methods. Simple example provided.


How to generate entities from tables using EclipseLink. Simple example using one-to-one database relationship. @MappedSuperclass example included