installing IntelliJ on Ubuntu

decompress the downloaded archive tar -xvf ideaIU-13.1.3.tar.gz sudo mv idea-IU-135.909 /opt/idea13 cd /usr/share/applications sudo gedit idea.desktop copy the below content and save [Desktop Entry] Name=IntelliJ IDEA Type=Application Exec=/opt/idea13/bin/idea.sh Terminal=false Icon=/opt/idea13/bin/idea.png Comment=Integrated Development Environment NoDisplay=false Categories=Development;IDE; Name[en]=IntelliJ IDEA sudo desktop-file-install idea.desktop source ~/.bashrc and type in you will see intellij installed

Reading columns of a table

String jdbcDriver = "oracle.jdbc.driver.OracleDriver"; String dbConnection = "xxx"; try { OracleDataSource oracleDataSource = new OracleDataSource(); oracleDataSource.setURL(dbConnection); connection = oracleDataSource.getConnection(); String selectQuery = "SELECT * FROM TABLENAME"; Statement statement = connection.createStatement(); ResultSet resultSet = statement.executeQuery(selectQuery); ResultSetMetaData resultSetMetaData = resultSet.getMetaData(); int col = resultSetMetaData.getColumnCount(); for (int i = 1; i <= col; i++){ System.out.println( "Column name: "+