Thursday, July 8, 2010

how to install pg_admin3 on debian

you can install easy postgres Sql on debian
just go on terminal and search postgres version
by following command

#aptitude search pgadmin
And select version
then run follow command

# aptitude install pgadmin3

and press enter

How to install mysql on debian

if you want to install mysql on debian linux so following this step.

step 1. open terminal and run following command

first search mysql on terminal by command

#aptitude search mysql

and select following link

#mysql-admin
#mysql-client-5.0
#mysql-server-5.0
#mysql-query-browser

after select run this command

#aptitude install
mysql-admin mysql-client-5.0 mysql-server-5.0 mysql-query-browser

and press enter

How to sort an HashMap based on value

import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.LinkedHashMap; import java....