摘要: 一、比较运算 1、比较运算符的结果都是boolean型,也就是要么是true,要么是false。2、比较运算符“==”不能误写成“=” 。 示例: public class Test { public static void main(String[] args) { System.out.prin 阅读全文
posted @ 2020-03-09 16:43 wzwzzzzz 阅读(156) 评论(0) 推荐(0)
摘要: 一、可以连续赋值 public class datatype { public static void main(String[] args) { int m = 1; int n = 1; int l = 1; m = n =l=8; System.out.println(m+n+l); } } 阅读全文
posted @ 2020-03-09 16:21 wzwzzzzz 阅读(302) 评论(0) 推荐(0)