ljwlgl / commonutil Goto Github PK
View Code? Open in Web Editor NEW轻便简单的Java常用工具类库
轻便简单的Java常用工具类库
Linux上安装docker后使用jar包方法获取IP为docker IP 非Linux真实IP
BigDecimal 计算double 类型数据,不能直接 new BigDecimal(double);下面代码执行一下试试看
public static void main(String[] args) {
double a = 19.9;
double b = 0.9;
BigDecimal a1 = new BigDecimal(a);
BigDecimal b1 = new BigDecimal(b);
System.out.println(a1.add(b1).doubleValue());
BigDecimal a2 = BigDecimal.valueOf(a);
BigDecimal b2 = BigDecimal.valueOf(b);
System.out.println(a2.add(b2).doubleValue());
}
日期工具类功能推荐增加清除时分秒为0以及设置到23:59:59
还有获取当月第一天和当月最后一天
现在用LocalDateTime比较多一些
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.