设计类
KiKi定义电子日历类
http://www.nowcoder.com/questionTerminal/e4c67097cdb242d9a3f38b7cfe839396
import java.util.*; class TDate{ private int year, month, day; TDate(int y, int m, int d){year = y; month = m; day = d;} @Override public String toString() { return day + "/" + month + "/" + year; } } public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.println(new TDate(sc.nextInt(), sc.nextInt(), sc.nextInt())); } }