7-1 sdut-JAVA-Date Validation
分数 15
全屏浏览
切换布局
作者 马新娟
单位 山东理工大学
Write a Java application program to accept three numeric values from the end user namely day, month and year. Your program should report whether or not these values constitute a valid date. You should modify your solution so that you accept the values from the end user in your main() method and then pass these values to another method titled validateDate(). The validateDate() method will return true to your main() method if the values constitute a valid date otherwise it will return false. Your main() method should display a message stating whether or not the values constitute a valid date.
Input Specification:
accept three numeric values from the end user namely day, month and year.
Output Specification:
display a message stating whether or not the values constitute a v