当前位置:网站首页>Use of hutool Pinyin tool
Use of hutool Pinyin tool
2022-07-04 05:29:00 【Rookie pig man YY】
Hutool Use of Pinyin tools
Import dependence
1. Import dependence
Because I just want to test , So what I import is jar package , If it is maven The project enters the pom.xml Just import the corresponding dependency in the file ( stay maven In the official website )
Import is required here 2 Dependencies :
1.hutool-all-5.4.1.jar package
2.pinyin4j-2.5.0.jar package
Use
1. Get Chinese initials
// Get the initial
String letter= PinyinUtil.getFirstLetter(" Hello ","");
System.out.println(" Hello initials :"+letter); // nh
边栏推荐
- Unity2D--人物移动并转身
- VB.net 调用FFmpeg简单处理视频(类库——6)
- Signification des lettres du module optique et abréviation des paramètres Daquan
- C # character similarity comparison general class
- BUU-Crypto-Cipher
- C language simple student management system (including source code)
- Build an Internet of things infrared temperature measuring punch in machine with esp32 / rush to work after the Spring Festival? Baa, no matter how hard you work, you must take your temperature first
- [wechat applet] template and configuration (wxml, wxss, global and page configuration, network data request)
- [technology development -25]: integration technology of radio and television network, Internet, telecommunication network and power grid
- PostgreSQL has officially surpassed mysql. Is this guy too strong!
猜你喜欢
Electronic components mall and data manual download website summary
数据标注是一块肥肉,盯上这块肉的不止中国丨曼孚科技
Void convolution, deformable convolution, deformable ROI pooling
Character types of C language
[high concurrency, high performance and high availability of massive data MySQL practice-7] - memory data drop disk
Enterprise level log analysis system elk (if things backfire, there must be other arrangements)
ETCD数据库源码分析——初始化总览
如何使用postman实现简单的接口关联【增删改查】
Evolution of system architecture: differences and connections between SOA and microservice architecture
云原生架构实战案例及优化解决方案
随机推荐
【QT】定时器
Unity2d -- character moves and turns
Simulink and Arduino serial port communication
(4) Canal multi instance use
Topological sorting and graphical display of critical path
远程桌面客户端 RDP
补某视频网站的js,进行视频解密
XII Golang others
BUU-Reverse-easyre
[matlab] matlab simulates digital baseband transmission system eye diagram of bipolar baseband signal (cosine roll off forming pulse)
IP时代来临,电竞酒店如何借好游戏的“东风”?
[技术发展-25]:广播电视网、互联网、电信网、电网四网融合技术
[paper summary] zero shot semantic segmentation
VB.net GIF(制作、拆解——优化代码,类库——5)
[QT] timer
Etcd database source code analysis - initialization overview
模拟小根堆
C # character similarity comparison general class
Just do it with your hands 7 - * project construction details 2 - hook configuration
KMP匹配字符串