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

Method isValid

ch2/YoilTellerMVC3.java:52–57  ·  view source on GitHub ↗
(int year, int month, int day)

Source from the content-addressed store, hash-verified

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

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected