The Magic of PreparedStatement Interface

If you are working on a Java Project that requires data storage and manipulation, a Java interface could be of great help to you. The “PreparedStatement” interface, under “java.sql” package, pre compiles and stores your SQL statements in an object to efficiently execute the said statement multiple times. There are setter methods that you have [...]

Limiting Decimal Points in Java

Limiting the decimal points/places of a double/float value is very important mostly when you are dealing with average or amount. Usually, the JVM presents the maximum number of decimal places depending on the type used. Apparently, having more than three decimal points could be disturbing. Other languages like Turbo C/C++ deals with this by just [...]