Get The Database Name

I want to write a program which returns the database name from a connection object. How can this be done
[111 byte] By [zetaa] at [2007-11-27 9:51:30]
# 1
Connection con = DriverManager.getConnection(?);con.getCatalog(); // display the database name
Yannixa at 2007-7-13 0:20:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...