public static String[] getIncidentDescription(String strtroubleDescription) {
String[] wfmflag = { "WFM_FLAG=TRUE" };
String wfmflagarr = Arrays.deepToString(wfmflag);
try {
if (strtroubleDescription.contains("RCA:")) {
System.out.println(strtroubleDescription);
} else {
strtroubleDescription = strtroubleDescription + "\n" + wfmflagarr;
}
} catch (Exception e) {
logger.error("exception in getIncidentDescription..." + e);
}
return wfmflag;
}
正在抛出错误
无法应用java.lang.Object中的你可以帮我解决这个问题....toString() (java.lang.String中[]) String wfmflagarr = Arrays.toString(wfmflag);
答案 0 :(得分:0)
String[] wfmflag = { "WFM_FLAG=TRUE" };
String wfmflagarr = Arrays.deepToString(wfmflag);
此代码对我来说很合适,请参阅result
[WFM_FLAG = TRUE]
如果wfmflag
的值是其他任何内容,请发布您的代码或尝试关注:
String wfmflagarr = Arrays.toString(wfmflag);