-
Java How to change date format in a String
If Java 8, DateTimeFormatter, else SimpleDateFormat to change the date format in a String.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
JDBC How to print all table names from a database?
A JDBC example to connect to a PostgreSQL, and print out all the tables from the default database postgres
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
JDBC Class.forName() is no longer required
Since Java 1.6, JDBC 4.0 API, it provides a new feature to discover java.sql.Driver automatically, it means the Class.forName is no longer required. Just put any JDBC 4.x driver in the project classpath, and Java is able to detect it.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
JDBC CallableStatement PostgreSQL Stored Function
A JDBC CallableStatement example to show you how to call a stored function from PostgreSQL database.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
How to Uninstall Oracle Database 19c on Windows
To uninstall Oracle database on Windows, we have to delete the all the related Ora* registry keys, files and folders manually.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
This is caused by the requested SID doesn’t exist in {ORACLE_HOME}/network/admin/tnsnames.ora
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java Events 2019
Some Java Conferences and Events 2019.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java 8 Convert LocalDateTime to Timestamp
In Java, we can use Timestamp.valueOf(LocalDateTime) to convert a LocalDateTime into a Timestamp.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java 8 Stream The peek() is not working with count()?
Many examples are using the .count() as the terminal operation for .peek(), for example:
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java 8 Convert ZonedDateTime to Timestamp
Java example to convert java.time.ZonedDateTime to java.sql.Timestamp and vice verse.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
java.sql.SQLException: operation not allowed: Ordinal binding and Named binding cannot be combined!
Ordinal binding or index binding:
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java Prime Numbers examples
The following Java examples will print a list of all the prime numbers up to 1,000:
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java 8 Parallel Streams Examples
Few Java 8 examples to execute streams in parallel.
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
Java Convert Integer to Long
In Java, we can use Long.valueOf() to convert an Integer to a Long
轻舞肥羊2019-08-11【[Java]】
阅读更多 -
java.sql.SQLException: The server time zone value xx time is unrecognized
Making a JDBC connection to the MySQL server with the latest mysql-connector-java:8.0.16 and hits the following SQLException:
轻舞肥羊2019-08-11【[Java]】
阅读更多