试过如下
String d=new String("12.00");
Double dble =new Double(d.valueOf(d));
System.out.println(dble);
Run Code Online (Sandbox Code Playgroud)
输出:12.0
但我希望得到12.00精度
请不要在字符串类中使用format()方法让我知道正确的方法
已实现如下的switch语句.
如果有任何错误,请您验证并更正吗?
<set name="flowScope.Valid" value="true">
<decision-state id="isDNCheckNotRequired" test="Valid == true">
<transition on="true" to="even"/>
<transition on="false" to="odd"/>
</decision-state>
<action-state id="even">
<evaluate expression="Test.setEven(true)">
</action-state>
<action-state id="odd">
<evaluate expression="Test.set(false)">
</action-state>
Run Code Online (Sandbox Code Playgroud)
请告诉我这是春天webflow 2.0中的实现方式
提前致谢.