使用java程序传递两个数组String date和return year [英] passing two array String date and return year using java program
问题描述
使用java程序传递两个数组字符串日期和返回年份如何使用java程序执行此操作,您可以提供此代码的链接。
我在exp列中有一个cv很多开始日期和结束日期我想找出将这个数组传递给方法返回年份的年份
对于Exp:
String [] date1 = {21-09 / 2015,21-09 / 2017,21-03 / 2013}
String [] date2 =21-09 / 2017,21-09 / 2019,21-03 / 2015;
public Long diffTwoDate(String [] date1,String [] date2){
传递两个以上类型的数组并返回年份
返回年份;
}
passing two array String date and return year using java program how can I do that using java program, can u provide me link of this code.
I have One cv in that exp column many start date and end date I want to find out the year passing this array to method return year
For Exp :
String [] date1= { "21-09/2015,21-09/2017,21-03/2013" }
String [] date2="21-09/2017,21-09/2019,21-03/2015";
public Long diffTwoDate(String []date1,String []date2){
passing two above type of array and return year
return year;
}
推荐答案
参见https://docs.oracle.com/javase/tutorial/datetime/iso/format.html [ ^ ]。
这篇关于使用java程序传递两个数组String date和return year的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!