Suitable for people :java beginner , getting started

New contact java, Learning branch structure if and switch 
package com.ambow.www.ch03; import java.util.Scanner; public class Day {
public static void main(String[] args) { Scanner sc = new Scanner(;
System.out.print(" Please enter the year "); int year = sc.nextInt(); System.out.print(" Please enter month ");
int month = sc.nextInt(); if(month<0 || month>12 || year<0) {
System.out.println(" Please enter the legal month and year !"); }else { switch(month) { case 1: case 3: case
5: case 7: case 8: case 10: case 12:System.out.println("31 day ");break; case 4:
case 6: case 9: case 11:System.out.println("30 day ");break; }
if((year%100!=0&&year%4==0)||year%400==0) { if(month==2) {
System.out.println("29 day "); } }else { if(month==2) { System.out.println("28 day ");
} } } } }

©2019-2020 Toolsou All rights reserved,
c Language implementation 《 Student management system 》 No hole is the future of mobile phone ? There are still many problems to be solved Junior , A little sense , Just for mutual encouragement How to use Vue Used in Echarts Visual Library The 11th Blue Bridge Cup Java The second provincial competition B Group part Python- be based on OpenCV Contour fill for flooding algorithm hole filling 【C#】 The realization of student achievement information management system List Common interview questions in the collection and simple ideas China Mobile Science Popularization : Why do mobile networks call “ Cellular mobile network ”【Golang Basic series 10 】Go language On conditional sentences if