1.java字符串转为int型: String id= 1; int id_int = Integer.parseInt(id); 2.java 字符串转为bool类型: parseBoolean函数:如果 String 参数不是 null 且在忽略大小写时等于"true",则返回的 boolean ...
分类:
编程语言 时间:
2020-02-10 17:46:45
阅读次数:
57
1]控件的OnCellContextClick的事件 procedure TMainForm.UniDBGrid1CellContextClick(Column: TUniDBGridColumn; X, Y: Integer); begin UniPopupMenu1.Popup(X, Y, Un ...
分类:
其他好文 时间:
2020-02-10 17:45:01
阅读次数:
80
1、什么是泛型 Java 泛型(generics)是 JDK5 中引入的一个新特性, 泛型提供了编译时类型安全检测机制,该机制允许开发人员在编译时检测到非法的类型。 泛型的本质是参数化类型,也就是说所操作的数据类型被指定为一个参数。 2、泛型的使用 泛型有三种使用方式,分别为:泛型类、泛型接口、泛型 ...
分类:
编程语言 时间:
2020-02-10 14:04:11
阅读次数:
75
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. Example 1: Input: 123 Output: " ...
分类:
其他好文 时间:
2020-02-10 10:16:33
阅读次数:
75
Given a non-negative integer num, return the number of steps to reduce it to zero. If the current number is even, you have to divide it by 2, otherwis ...
分类:
其他好文 时间:
2020-02-10 10:02:26
阅读次数:
76
轮询 主要思想是服务器一个接一个的服务 1 简单实现 public class RoundRobin { private static Integer pos = 0; public static String getServer() { if(pos >= ServerIps.LIST.size( ...
分类:
其他好文 时间:
2020-02-10 09:42:39
阅读次数:
63
一、列表(Lists) 列表属于Python中的序列类型,它是任意对象的有序集合,通过 “ 位置 ”或者 “ 索引 ” 访问其中的元素,它具有可变对象、可变长度、异构和任意嵌套的特点。 列表里第一个元素的为值或者索引是从 “ 0 ” 开始,第二个元素则是 “ 1 ”,一次类推。 列表的元素放置在方括... ...
分类:
编程语言 时间:
2020-02-10 00:05:54
阅读次数:
99
问题: 后台查询后的数据只有1页,已经设置了PageHelper也没用 PageHelper.startPage(pageNum,pageSize); ModelAndView mv=new ModelAndView(); Integer count= secondService.message() ...
分类:
其他好文 时间:
2020-02-09 20:13:59
阅读次数:
1760
啥叫倍数的向上取整与向下取整呢? 举个例子,你有一个函数,用来分配一块内存,为了提高运行速度,要对内存大小进行对齐。 function NewMemBlock(const BlockSize, AlignSize: Integer): Pointer; var NewSize: Integer; b ...
分类:
其他好文 时间:
2020-02-09 18:48:07
阅读次数:
261
/**判断是否超过多少小时 如:24 * * @param tableTime 业务时间 * @param hour 多少小时 * @return boolean * @throws Exception */ public static boolean judgmentDate(String tab ...
分类:
编程语言 时间:
2020-02-09 18:37:13
阅读次数:
534