文件名称:Lab1
介绍说明--下载内容均来自于网络,请自行研究使用
SnakeTable
说明:本程序可产生蛇形阵,同时能识别输入字符,满足了题目要求,同时还有以下特性:
一:在输入字符数超过2(如输入10或者ak)的情况下提示“ERROR!!! You have enter two or more chars!”
二:加入了对齐功能
Mybirthday
说明;本程序定义了一个MyDate的类,可实现题目的所有功能并加入了一些特性:
一:所有数据均可由用户输入(不输入的情况全部默认为0)
二:具备一定的检查输入的特性
Tip:由于默认值为0 ,因此比较年龄的时候会检查是否定义过这个ID-SnakeTable Descr iption: This program can produce serpentine front, and can recognize the input character to meet the requirements of the subject, along with the following characteristics: a: Enter the number of characters in the case of more than two (eg enter 10 or ak) prompt " ERROR! !!! You have enter two or more chars " two: adding the alignment features Mybirthday descr iption This program defines a class MyDate, enabling all the features of the subject and added some features: a: All data can be input by the user ( Without the input of all the default is 0) two: Check the input with a certain characteristic Tip: Since the default value is 0, so when comparing age checks whether the defined ID
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SnakeTable.java
MyBirthday.java