上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 39 下一页
摘要: https://www.bejson.com/json2javapojo/new/http://www.jsons.cn/json2java/http://tool.chinaz.com/Tools/json2e... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(19) 评论(0) 推荐(0)
摘要: http://www.bejson.com/jsonviewernew/https://www.json.cn/http://tool.chinaz.com/tools/jsonformat.aspx ... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(21) 评论(0) 推荐(0)
摘要: 假设我们想用gson把如下的json字符串转成一个Student对象,正常情况下是无法成功解析的,因为json的键名和Java类的变量名不一致,这种情况在开发中很常见,后台服务器返回的json字段经常不符合ja... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(33) 评论(0) 推荐(0)
摘要: 先定义一个Java对象public class Student { public String name; public int age; public Student(String name,... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(20) 评论(0) 推荐(0)
摘要: 先定义一个Java对象public class Student { public String name; public int age; public Student(String name,... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(23) 评论(0) 推荐(0)
摘要: 引用gsondependencies { implementation 'com.google.code.gson:gson:2.8.5'}方法一:Map对象转jsonpublic void printJs... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(75) 评论(0) 推荐(0)
摘要: http://www.bejson.com/jsonviewernew/https://www.json.cn/http://tool.chinaz.com/tools/jsonformat.aspx ... 阅读全文
posted @ 2019-05-18 22:29 野猿新一 阅读(33) 评论(0) 推荐(0)
摘要: 二进制以0b或者0B开头 可用符号0、1 负数在前面加符号-正确的值:0x10、0X11、-0x11错误的值:0x12需要注意的是这里0b或者0B开头表示的只是进制,而不是说该常量是byte类型,千万不要搞混了八... 阅读全文
posted @ 2019-04-13 23:34 野猿新一 阅读(109) 评论(0) 推荐(0)
摘要: 二进制以0b或者0B开头 可用符号0、1 负数在前面加符号-正确的值:0x10、0X11、-0x11错误的值:0x12需要注意的是这里0b或者0B开头表示的只是进制,而不是说该常量是byte类型,千万不要搞混了八... 阅读全文
posted @ 2019-04-13 23:34 野猿新一 阅读(81) 评论(0) 推荐(0)
摘要: java中byte、short、int、long都是以二进制补码表示的整数原码最高位为符号位,0表示正数,1表示负数,其余位为正常的二进制表示 5的原码:00000000 00000000 00000000 00... 阅读全文
posted @ 2019-04-12 22:23 野猿新一 阅读(28) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 39 下一页