负数转正整数

Long user = ~(Long.parseLong(userId)-1);
Math.abs(userId)

posted @ 2023-02-22 11:19  Sjh_code  阅读(30)  评论(0编辑  收藏  举报