publicarraylistgetinferfacelist (arraylisttasknamelists ) {
字符串接口名称=' ';
string splited工作表=' ';
arraylistinterfacenamelist=new ArrayList (;
//遍历获取作业名称list中的每个作业名称
任务名称列表:任务名称列表(for )。
slitedworktable=taskname list.get taskname (;
System.out.println (工作名称: ' splitedWorkTable );
//接口名称是指作业名称中除去前缀SPT_GESSPSBC-STOR_INFO后的名称
string [ ] split=splited worktable.split (' _ ';
遍历//int数组,得到分割作业名的各要素
for(intx=1; x split.length; x ) {
//首先判断该元素是否是最后
if(x==split.Length-1 ) {
//直接连接元素
接口名称=split [ x ];
} else{
//把元素和(连接起来
接口名称=split [ x ];
//split[1]=split[1].replace('-',' _ ' );
接口名称=' _ ';
}
}
接口名称列表. add (接口名称;
}
system.out.println (接口名称;
返回接口名称列表;
}