<prompt> Andika programu ya Java inayounganishwa na hifadhidata ya PostgreSQL, weka data kwenye jedwali, uhoji jedwali, na uonyeshe matokeo kwa njia iliyoumbizwa.PLINFORMAT  <response>: kuagiza java.sql.Connection;agiza java.sql.DriverManager;agiza java.sql.PreparedStatement;agiza java.sql.ResultSet;agiza java.sql.SQLException;agiza java.sql.Statement;darasa la umma PostgreSQLMfano Private tuli final String DB_URL jdbc:postgresql:localhost:5432your_database; faragha tuli final Kamba USER your_username; Private tuli final Kamba PASS your_password; utupu tuli wa umma String args jaribu Muunganisho wa muunganisho DriverManager.getConnectionDB_URL, USER, PASS System.out.printlnImeunganishwa kwa seva ya PostgreSQL kwa mafanikio.; Unda meza mpya createTablemuunganisho; Weka data ya sampuli kuingizaDatamuunganisho; Uliza jedwali na uonyeshe matokeo queryAndDisplayResultsmuunganisho; catch SQLException e System.err.formatJimbo la SQL: sns, e.getSQLState, e.getMessage; Private static void createTableConnection connection hutupa SQLException String createTableSql UNDA JEDWALI IKIWA HAIPO wafanyakazi id SERIAL FUNGUO MSINGI, jina VARCHAR100 SI UFUPI, nafasi VARCHAR100 SIYO BATILI ; jaribu Taarifa ya taarifa connection.createStatement statement.executecreateTableSql; Private static baid insertDataConnection connection hutupa SQLException String insertSql WEKA NDANI ya wafanyakazi jina, nafasi MAADILI ?, ?; jaribu PreparedStatement preparedStatement connection.prepareStatementinsertSql preparedStatement.setString1, John Doe; preparedStatement.setString2, Programu Mhandisi; readyStatement.executeUpdate; swala la kibinafsi tuli la utupuAndDisplayResultsmuunganisho wa muunganisho hutupa SQLException String querySql CHAGUA KUTOKA KWA wafanyakazi; jaribu Taarifa ya taarifa connection.createStatement ResultSet resultSet statement.executeQueryquerySql; System.out.printlnIDtNametPosition; wakati resultSet.next int id resultSet.getIntid; Jina la kamba resultSet.getStringjina; Nafasi ya kamba resultSet.getStringnafasi; System.out.printfdtstsn, kitambulisho, jina, nafasi; 