小编Fly*_*Dev的帖子

将字符串数组转换为长数组

我想将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)

java long-integer

2
推荐指数
2
解决办法
7226
查看次数

标签 统计

java ×1

long-integer ×1