orderAttributeType.setName(hirTask.getEscalationLevel());
HI转换, 这里我使用这些(hirTask.getEscalationLevel).setname让整数值是expexcting蜇value.Can任何一个可以告诉我如何解析为整串。如何将整数值字符串值
orderAttributeType.setName(hirTask.getEscalationLevel());
HI转换, 这里我使用这些(hirTask.getEscalationLevel).setname让整数值是expexcting蜇value.Can任何一个可以告诉我如何解析为整串。如何将整数值字符串值
您可以使用Integer.toString(int)
像
Integer.toString(hirTask.getEscalationLevel())
String.valueOf(hirTask.getEscalationLevel())
甚至
"" + hirTask.getEscalationLevel()
我不认为'“”+ int'是一个很好的方法:) – pbespechnyi
@pbespechnyi **是**为什么它是最后的名单! –
尝试String.valueOf(int)
或者整数包装类对象integer.toString()
。
'Integer' not'integer' :) – TheLostMind
@TheLostMind,'Integer'是一个类,'integer'是一个对象;} – pbespechnyi
'public static String toString(int i)':) – TheLostMind
'Integer.toString(int value)' –
首先在** Google **上搜索。 – Braj
你尝试过'String.valueOf(myInteger)'吗? – TheLostMind