import java.util.Scanner;
class SwitchEx1 {
 public static void main(String[] args) {
  
  System.out.println("6월 1일은 월요일입니다. 6월의 날짜중 하나를 입력하세요.");
  Scanner kc= new Scanner(System.in);
  int d=kc.nextInt();
  
  if(d>30 || d<1) {
   System.out.println("날짜를 잘못 입력하셨습니다. 다시 실행해주세요");
   return;
  }  
  
     
  switch(d%7) {
   
  case 0 : 
   System.out.printf("6월 %d일은, 일요일입니다.", d);
   break;
  case 1 :
   System.out.printf("6월 %d일은, 월요일입니다.", d);
   break;
  case 2 :
   System.out.printf("6월 %d일은, 화요일입니다.", d);
   break;
  case 3 :
   System.out.printf("6월 %d일은, 수요일입니다.", d);
   break;
  case 4 :
   System.out.printf("6월 %d일은, 목요일입니다.", d);
   break;
  case 5 :
   System.out.printf("6월 %d일은, 금요일입니다.", d);
   break;
  case 6 :
   System.out.printf("6월 %d일은, 토요일입니다.", d);
   break;
 
  }
      }
}


여기서 말이야...
1%7이 어떻게 1이 될 수 있는거야?
아무리 생각해도 이해가 안 돼네;;
알려줍셔