MCPcopy Create free account
hub / github.com/castello/spring_basic / isValid

Method isValid

ch2/YoilTellerMVC2.java:48–53  ·  view source on GitHub ↗
(int year, int month, int day)

Source from the content-addressed store, hash-verified

46 }
47
48 private boolean isValid(int year, int month, int day) {
49 if(year==-1 || month==-1 || day==-1)
50 return false;
51
52 return (1<=month && month<=12) && (1<=day && day<=31); // 간단히 체크
53 }
54}

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected