@@ -0,0 +1,456 @@
+package logic1;%0A%0Apublic class DateFashionTest %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%0A%09%09DateFashionTest test = new DateFashionTest();%0A%09%09System.out.println(test.dateFashion(5, 10));%0A%09%09System.out.println(test.dateFashion(5, 2));%0A%09%09System.out.println(test.dateFashion(5, 5));%0A%09%7D%0A%0A%09public int dateFashion(int you, int date) %7B%0A%09%09if (you %3C= 2 %7C%7C date %3C= 2) %7B%0A%09%09%09return 0;%0A%09%09%7D else if (you %3E= 8 %7C%7C date %3E= 8) %7B%0A%09%09%09return 2;%0A%09%09%7D else %7B%0A%09%09%09return 1;%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add DateFashionTest