摘要:
使用IDEA开发工具,提示编译错误的问题。比如switch语句提示 incompatible types found java.lang.string, require: byte, char, short or int,意思就是类型错误,不支持字符串类型,其实这个是java的语言级别没有设置好导致 阅读全文
摘要:
public class Demo { public static void main(String[] args) { int i = 5; int j = 3; // || 与 | 的区别 boolean bo = i > j || i ++ > 2; System.out.println(bo 阅读全文