java
纤离浩雅
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java中string和int互相转化
1 如何将字串 String 转换成整数 int? A. 有两个方法: 1). int i = Integer.parseInt([String]); 或 i = Integer.parseInt([String],[int radix]); 2). int i = Integer.valueOf(my_str).intValue(); 注: 字串转成 Double,转载 2014-06-28 16:48:18 · 414 阅读 · 0 评论 -
用flexjson转换对象时,出错Error trying to deepSerialize
在序列化handler和hibernateLazyInitializer出错, 这两个应该 和hibernate的延迟加载有关, 在加上 [java] view plaincopyprint? serializer.exclude(new String[]{"*.handler","*.hibernateLazyInitializer"})转载 2014-09-02 12:07:41 · 1697 阅读 · 0 评论 -
HTTP Status 500 - java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
使用的数组出现问题了。可能你的List不为空,但是list.size()==0,你想取第一个值,根本没有,所以出错了。在用list.get(0);的时候,你需要判断list != null && list.size()!=0原创 2014-09-03 11:06:22 · 3093 阅读 · 0 评论
分享