解题思路

import java.util.Scanner;

public class Main{
    
    public static void main(String[] args){
        Scanner sin = new Scanner(System.in);
        long year = sin.nextLong();
        int day = sin.nextInt();
        int month = sin.nextInt();
        TDate td = new TDate(month,day,year);
        td.prints();
        
    }
}


class TDate{
    
    private int Month = 0;  // 日
    private int Day = 0; // 月
    private long Year = 0; // 年
    
    TDate(int Month,int Day,long Year){
        this.Month = Month;
        this.Day = Day;
        this.Year = Year;
    }
    
    public void prints(){
        System.out.println(Month + "/" + Day + "/" + Year);
    }
}