我需要转动一个字符串,例如
class freud IF : 0.010<=cst0.1<=0.02 ^ 0.012<=cst0.2<=0.014 ^ 0.01<=cst0.3<=0.011 ^ 0.009<=cst0.4<=0.01 ^ cst0.5=0.009 ^ 0.008<=cst0.6<=0.009 ^ 0.008<=cst0.7<=0.009 ^ 0.007<=cst0.8<=0.009 ^ 0.007<=cst0.9<=0.009 ^ 0.008<=cst1.0<=0.012
进入实际的 Java if 语句:即
if(0.010 <= cst0.1 && cst0.1 <= 0.02 .....)
其中 cst0.1 成为浮点数等的名称。
有任何想法吗?我尝试将字符串拆分为其组件,但我需要的所有字符串都不同!
谢谢