正在显示
1 个修改的文件
包含
8 行增加
和
0 行删除
| @@ -204,4 +204,12 @@ public class CommonTest { | @@ -204,4 +204,12 @@ public class CommonTest { | ||
| 204 | 204 | ||
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | + @Test | ||
| 208 | + public void emoji2(){ | ||
| 209 | + String emostring ="😂"; | ||
| 210 | + System.out.println(emostring.length()); | ||
| 211 | + System.out.println(new StringBuilder().appendCodePoint( | ||
| 212 | + emostring.codePointAt(emostring.offsetByCodePoints(0, 1))).toString()); | ||
| 213 | + } | ||
| 214 | + | ||
| 207 | } | 215 | } |
-
请 注册 或 登录 后发表评论