public static void main(String[] args) { System.out.println(judge(new int[]{1,3},new int[]{2,5})); System.out.println(judge(new int[]{1,3},new int[]{4,5})); System.out.println(judge(new int[]{3,5},new int[]{4,8})); } public static boolean judge(int[] A, int[] B) { return Math.max(A[0],B[0])<=Math.min(A[1],B[1]); }
标签:Java,交集,System,----,int,println,judge,new,out From: https://www.cnblogs.com/gun-a/p/17127434.html