用Jbulid做了个简单的代码,数据库用oracle,代码如下:
try
     {       //String sqlstr = "select * from SWLHYL_KC_PP where KC_PP_GB='" +str.trim() + "' order by KC_PP_PPID";
       String sqlstr="select * from SWLHYL_KC_PP";
       Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
                                            ResultSet.CONCUR_READ_ONLY);
       ResultSet rst = stmt.executeQuery(sqlstr);
       Collection ret = new ArrayList();
       while (rst.next()) {
         System.out.print(rst.getInt(1)+"   ");
         System.out.print(rst.getString(2)+"   ");
         System.out.print(rst.getString(3));
         System.out.println();
       }
     }
     catch(Exception e)
     {
       e.printStackTrace();
     }
用eclipse运行是输出是正确的,但是有Jbulid x运行时转换成了16进制的字符,怎么解决呀