1 .  给每个学生一个学号,要求五位以s开头,后面四位为流水号,不足四位的,用0填充。2。jsp 内置对象,静态的include和动态的什么区别?3。js 当一个事件失去焦点时 ,处于什么状态。4。 学生和课程在数据库中 是什么关系?5。 struts 中的action 什么作用?6。struts 和spring 怎么结合? spring 怎么实现控制反转,依赖注入?7。 uml 中 车和车轮是什么关系?8。sql 从a表中查寻d字段 要求在b条件的情况下满足c是最大值.9. object和object数组什么区别?

解决方案 »

  1.   

    1. String stuNumber = String.format("S%04d", 23);
    2. [不明]
    3. blur
    4. 一对多的关联
    5. 控制器
    6. 使用 Spring 内置的框架,采用 IoC 注入;在 XML 文件中配置,并通过各种获得 Bean 的类库获取。
    7. 聚合
    8. [先空着]
    9. object 是 object 数组中的一个元素,整体和部分的区别。
      

  2.   

    1--
        public static String paddingZero(String aStrPadd, int aIntScale)
        {
            if(aStrPadd == null || "".equals(aStrPadd))
            {
                return "";
            }
            String strRet;
            for(strRet = aStrPadd; strRet.length() < aIntScale; strRet = (new StringBuilder()).append(strRet).append("0").toString()) { }
            return strRet;
        }
      

  3.   

    8.
     select max(c) from a where d='b'
      

  4.   

    8。sql   从a表中查寻d字段   要求在b条件的情况下满足c是最大值. 
    select d from a where c=(select max(c) from a where d)
      

  5.   

    select d from a where c=(select max(c) from a) and b