How To Use Java 8 Stream Reduce Example

This post shows how to use Java Stream Reduce with example codes. The idea of the reduce operation is the generation of a single result from a collection of values or objects. It is similar to the min  and max operations

iReport 2.0.0 Page Numbers and Page Count

This post shows how to create a jasper report using iReport that displays page numbers and page count, e.g., 1/10. Moreover, the iReport will show the page numbers and page count on top of the pages. iReport 2.0.0 and other

Java 8 – Get my current timezone using ZonedDateTime

This post shows how to get your current timezone in Java using ZonedDateTime class. Get Current Timezone Using ZonedDateTime Since Java 8, it is possible to determine your current timezone using ZoneDateTime. Suppose you are in Singapore or thereabout; the

Java – Generate PDF in Specific Version using JasperReports

Some devices can only process specific versions of PDFs. This post shows how to generate specific PDF versions in Java and JasperReports. If our devices are considerably old, chances are they can only process older versions of PDF documents. Java,

How to update User Country and Language in SAP NetWeaver Portal

We can create SAP NetWeaver Portal users from various sources. One is through LDAP. Unfortunately, the details from LDAP are never comprehensive. Next, is through user inputs. Users register and provide details like country and language. This post shows how

Java – Convert JavaBean Using XMLEncoder and XMLDecoder

This post shows how to use the Java classes XMLEncoder and XMLDecoder to convert JavaBean objects to XML and back. Note that they support the specifications for JavaBeans to make things work. On the other hand, a conversion may not

Java 8 – Convert Iterator to Stream Using StreamSupport

Although not a common scenario, some libraries return Iterators instead of Stream or Collection objects. Why? Because they can. If the Java libraries you are using have methods that return Iterator objects, this will show how to convert Iterator to