`
wfzhanga
  • 浏览: 68345 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

扫地机器人

写道 package qlcoder.robot2;import java.io.BufferedReader;import java.io.File;import java.io.FileNotFoundException;import java.io.FileReader;import java.io.IOException;import java.io.Reader;import java.util.regex.Matcher;import java.util.regex.Pattern;public class Room { private int level; private in ...

java 注解说明

Class clazz = entity.getClass(); //获取类的指定注解 DBTable dbTable = (DBTable) clazz.getAnnotation(DBTable.class); for(Field field : clazz.getSuperclass().getDeclaredFields()){ //判断属性的注解是否存在 field.isAnnotationPresent(DBColumn.class) //获取属性的指定注解 String annotationName = ((DBColumn) f ...
public class SapFunction { //JCo 返回参数类型定义 public static final Integer Type_String = 1; public static final Integer Type_Int = 2; public static final Integer Type_Long = 3; public static final Integer Type_Double = 4; public static final Integer Type_Date = 5; publi ...
http://blog.csdn.net/rj042/article/details/21654627
   http://www.jb51.net/article/38871.htm

J2ee杂谈

我也搞了几年JAVA了,由于一向懒惰,没有成为大牛,只是一普通程序猿,不爱玩社交网站,不爱玩微博,唯独喜欢百度贴吧,潜水很久了,手痒来给新人分享下从新手成长为老鸟的已见,也刷刷存在感,应该不比曝照差吧。 首先初识语法的阶段,必须要学会怎么操作对象,操作if和for,操作list set map,然后是线程、IO和jdbc什么的,其余的,若是一时不理解,可以后边需要时再学。这阶段完了,你可以写些能在控制台打印出来的小程序,锻炼下逻辑思维。也就是号称JAVASE毕业了,其实不过是入门而已,如果要往WEB方向发展,这些倒是基本足够了。 接下来要学HTML JSP SERVLET 数据库 JAVA ...
网上找过很多,都好像效果不明显, 下面是自己改进的一个,flex3测试可行: setTimeout(treeExpand, 1000); //延时1秒 private function treeExpand():void { tree.selectedIndex=1; openItem(tree,District(tree.selectedItem)); } private function openItem(tree:NodeTree, treeItem:District):void { tree.expandItem(treeItem,true) ...
1. 查看哪个表被锁 select b.owner, b.object_name, a.session_id, a.locked_mode from v$locked_object a, dba_objects b where b.object_id = a.object_id;     2.查看是哪个session引起的 select b.username, b.sid, b.serial#, logon_time from v$locked_object a, v$session b where a.session_id = b.sid order by ...
官网地址:http://www.springsource.org/spring-flex 下载资源包: spring-flex-1.5.2.RELEASE-dist.zip   1. 代码配置(spring的配置不作说明): 1)引入jar包:spring-flex-core-1.5.2.RELEASE.jar 2)web.xml配置: <listener> <listener-class>flex.messaging.HttpFlexSession</listener-class> </listener> <s ...
写道 方法一:在初始化时保存ApplicationContext对象代码:ApplicationContext ac = new FileSystemXmlApplicationContext("applicationContext.xml");ac.getBean("beanId");说明:这种方式适用于采用Spring框架的独立应用程序,需要程序通过配置 ...
Axis 简单说明:   1. Lib 包引用 2.web.xml配置 <listener>
  ** 闪回 查询某一时间点的数据 select * from gs_grid_info as of timestamp to_timestamp('2013-05-09 9:00:47', 'yyyy-mm-dd hh24:mi:ss'); 允许数据表行移动 alter table gs_grid_relation enable row movement; 恢复到指定时间的表记录 flashback table gs_grid_relation to timestamp to_timestamp('2013-05-09 10:00:00','yyy ...
当finall块中包含return语句时,Eclipse会给出警告“finally block does not complete normally”,原因分析如下: 1、不管try块、catch块中是否有return语句,finally块都会执行。 2、finally块中的return语句会覆盖前面的return语句(try块、catch块中的return语句),所以如果finally块中有return语句,Eclipse编译器会报警告“finally block does not complete normally”。 3、如果finally块中包含了return语句,即使前 ...
private function formatTime(item:Object,column:DataGridColumn):String { return df.format(item.operateDate); // df是一个DateFormatter,这里格式化item数据中的startDate字段 }   定义输出格式 <mx:DateFormatter id="df" formatString="YYYY-MM-DD"/> <mx:DataGridC ...
     1. Flex中DataGrid中行列值信息量太大,无法显示时就需要采用tooltip方式,进行提示。       采用方式为:dataTipField="text" showDataTips="true"   <mx:DataGridColumn headerText="Text" dataField="text" dataTipField="text" showDataTips="true" />        2. 如上情况也可以自动换行 ...
Global site tag (gtag.js) - Google Analytics