java去除字符串后面的\0
private String filterCode(String string) { if (string != null) { string = string.trim(); byte[] zero = new byte[1]; zero[0] = (byte) 0; String s = new String(zero); string = string.replace(s, ""); } return string; }
java去除字符串后面的\0
private String filterCode(String string) { if (string != null) { string = string.trim(); byte[] zero = new byte[1]; zero[0] = (byte) 0; String s = new String(zero); string = string.replace(s, ""); } return string; }
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M