//包名 package one; //public 公共的 class类 _it和文件名一致 public class _it { //static静态的,void 没有返回值, main方法名称,[]数组 ,args参数名称 public static void main(String[] args) { //x,y两个函数if如果x>y的话是错的,x<y的话是对的 int x = 6; int y = 7; if (x > y) { System.out.println(false); } else { System.out.println(true); } } }