我想将Info_TimeD1[]字符串数组中的值转换为长数组并存储在ohh[].I中发现错误,我无法通过这种情况.
String[] Info_TimeD1;
String[] ohh;
int i;
int L1 = Info_TimeD1.length;
for(int i=0;i<L1;i++)
{
Long Timestamp1[i] = Long.parseLong(Info_TimeD1[i]); // error this line
ohh[i] = getDateCurrentTimeZone1(Timestamp1[i]);
}
Run Code Online (Sandbox Code Playgroud)