负数转正整数

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

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