码迷,mamicode.com
首页 >  
搜索关键字:roman to integer    ( 15811个结果
springboot redis 用RedisTemplate执行lua脚本报错:@user_script:1: ERR value is not an integer or out of range
代码如下: /** * 获取分布式锁 * * @param lockKey 锁 * @param requestId 请求标识 * @param expireTime 单位秒|你认为此方法需要多少时间,设置一个最长时间,此时间必须大于需要调用锁的业务方法逻辑的最大时间,否则锁会冲突 * @param ...
分类:编程语言   时间:2020-06-30 14:35:45    阅读次数:74
java中8种基本类型、包装类、常量池
基本数据类型 Java中有8种基本数据类型,分别为: 6种数字类型 :byte、short、int、long、float、double 1种字符类型:char 1种布尔型:boolean 包装类 八种基本类型都有对应的包装类分别为:Byte、Short、Integer、Long、Float、Doub ...
分类:编程语言   时间:2020-06-30 12:44:48    阅读次数:109
springboot注解
1. @data 安装 lombok 插件 写一个实体类,加上 @Data 注解 import lombok.Data; @Data public class Test { private Integer id; private String name; private String passwor ...
分类:编程语言   时间:2020-06-30 10:58:15    阅读次数:53
1399. Count Largest Group
Given an integer n. Each number from 1 to n is grouped according to the sum of its digits. Return how many groups have the largest size. 对1-n的数分组,分组规则 ...
分类:其他好文   时间:2020-06-29 20:18:12    阅读次数:73
Springboot之自定义校验注解
在日常代码开发中,我们需要对实体类中的各个属性进行校验,比如非空判断、url 判断等等,在 javax.validation.constraints.* 包下面集成了多个校验注解。但是随着业务的发展,我们需要自定义一些特殊的注解,比如,针对一些标志位,我们必须保证其 数值只是 Integer类型的 ...
分类:编程语言   时间:2020-06-29 18:31:00    阅读次数:64
1492. The kth Factor of n
Given two positive integers n and k. A factor of an integer n is defined as an integer i where n % i == 0. Consider a list of all factors of n sorted ...
分类:其他好文   时间:2020-06-29 10:05:07    阅读次数:60
(易忘篇)java8新特性
一、Lambda表达式 Lambda表达式的基本语法 举例:(o1, o2) -> Integer.compare(o1, o2); 格式: →:lambda操作符或箭头操作符 →左边:lambda形参列表(接口中的抽象方法的形参列表) →右边:lambda体(重写的抽象方法的方法体) 具体的六种语 ...
分类:编程语言   时间:2020-06-29 09:50:23    阅读次数:62
OC基础 类别
类别的创建 integer.h @interface integer : NSObject @property int integer; @end integer.m @implementation integer @end 类别 integer+display.h integer+display. ...
分类:其他好文   时间:2020-06-29 00:20:44    阅读次数:61
JAVA中Integer的==和equals注意
“equals”比较equals(Object obj)方法,在equals(Object obj)方法中,会先判断参数中的对象obj是否是Integer同类型的对象,如果是则判断值是否相同,值相同则返回true,值不同则返回false,如果obj不是Integer类的对象,则返回false。需要注 ...
分类:编程语言   时间:2020-06-28 22:40:04    阅读次数:57
leetcode 简单题 13. 罗马数字转整数
罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。 字符 数值 I 1 V 5 X 10 L 50 C 100 D 500 M 1000 例如, 罗马数字 2 写做 II ,即为两个并列的 1。12 写做 XII ,即为 X + II 。 27 写做 XXVII, 即为 XX + V ...
分类:其他好文   时间:2020-06-28 20:46:27    阅读次数:53
15811条   上一页 1 ... 43 44 45 46 47 ... 1582 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!