如果你的getconn是static的可以这样
int i = common.getconn();
如果你的getconn不是static的可以这样
int i= new common().getconn();