当前位置:网站首页>How to compare long and integer and why to report errors
How to compare long and integer and why to report errors
2022-07-28 05:29:00 【wang0112233】
newDo.getId() yes Long type
datas.getId() yes Integer type
When both values are 1000000 If you compare directly eluals Comparison always returns false;

reason Long Rewrote equals Methods
How to solve :
if (newDO.getId().equals(datas.getId().longValue())) {}边栏推荐
- SMD component size metric English system corresponding description
- JMeter related knowledge sorting
- 【ARXIV2205】EdgeViTs: Competing Light-weight CNNs on Mobile Devices with Vision Transformers
- JVM篇 笔记4:内存模型
- mysql的日期与时间函数,varchar与date相互转换
- 凛冬已至,程序员该怎么取暖
- Oracle用sql查询某张表的字段信息(字段类型、长度等)
- New methods and features of ES6 built-in objects
- Video twins: the starting point of informatization upgrading of smart Parks
- How should programmers keep warm when winter is coming
猜你喜欢

FreeRTOS personal notes - task notification

How does Alibaba use DDD to split microservices?

测试开发---自动化测试中的UI测试

VMware Workstation 与 Device/Credential Guard 不兼容。禁用 Device/Credential Guard

数据库日期类型全部为0

2022 summer practice (PowerDesigner tutorial learning record) (first week)

自定义Json返回数据

PC端-bug记录
![Classes and objects [medium]](/img/0a/955d00d63f06e7e15e946599628edf.png)
Classes and objects [medium]

First acquaintance with C language (1)
随机推荐
Scanf function of input and output function in C language
MySQL date and time function, varchar and date are mutually converted
Professor dongjunyu made a report on the academic activities of "Tongxin sticks to the study of war and epidemic"
IDEA使用dev-tool实现热部署
Share several methods of managing flag bits in C program
How should programmers keep warm when winter is coming
【CVPR2022】On the Integration of Self-Attention and Convolution
About MySQL group_ What concat has to say
测试开发---自动化测试中的UI测试
New arrow function in ES6
Redis 之布隆过滤器
Printf function of input and output function in C language
21 day SQL punch in summary
多线程进阶:volatile的作用以及实现原理
MySQL basic query
How practical is the struct module? Learn a knowledge point immediately
Offline loading of wkwebview and problems encountered
Tomato timing dimming table lamp touch chip-dlt8t10s-jericho
【idea插件神器】教你如何使用IDEA一键set实体类中所有属性
架构设计思考合集