在过去的几天里,每次我尝试运行我的Web应用程序时,Error-503都会出现.即使我尝试进入管理页面,也会发生这种情况.这是谷歌的问题吗?
我正在尝试将字符串pprice转换为浮点数.但是,对象的价格属性(浮动pt类型)设置为0.00 ..有人可以告诉我有什么问题吗?
String pprice="60.0"
String tokens[]=pprice.split(".");
if(tokens.length>=2)
{
int a=Integer.parseInt(tokens[0]);
int b=Integer.parseInt(tokens[1]);
float a1=(float)a;
float b1=(float)b;
Float price=a1+(b1/100);
prod.setProductPrice(price);
}
else if(tokens.length==1)
{
int a=Integer.parseInt(tokens[0]);
float a1=(float)a;
prod.setProductPrice(a1);
}
Run Code Online (Sandbox Code Playgroud)