Write a Java program using JDBC