看见你的回答就知道高手 The left-hand side of an assignment must be a va
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/14 06:12:05
看见你的回答就知道高手 The left-hand side of an assignment must be a variable?db
String schoolingLength = request.getParameter("schooling_length");
Double db = Double.parseDouble(schoolingLength);
=1){
}
%>
String schoolingLength = request.getParameter("schooling_length");
Double db = Double.parseDouble(schoolingLength);
=1){
}
%>
这段程序有问题.
Double.parseDouble(schoolingLength 得到的是一个double变量
而左Double db所赋值的是Double变量,变量类型不一致导致不能赋值.
double是基本数据类型,而Double是封装的对象类型,这是不同的数据类型
你只要把Double db = Double.parseDouble(schoolingLength);改为
double db = Double.parseDouble(schoolingLength);
编译就能通过
Double.parseDouble(schoolingLength 得到的是一个double变量
而左Double db所赋值的是Double变量,变量类型不一致导致不能赋值.
double是基本数据类型,而Double是封装的对象类型,这是不同的数据类型
你只要把Double db = Double.parseDouble(schoolingLength);改为
double db = Double.parseDouble(schoolingLength);
编译就能通过
The left-hand side of an assignment must be a variable这个怎么改?
new Address[]()那里报The left-hand side of an assignment must b
object "process_en" on left-hand side of assignment must hav
“you must drive on the left-hand side of the road in Britain
word 设置 the left and right hand margis of your assignment sh
which side is the left side of a pie
句型你必须靠马路左边行驶1You must drive on the left side of the road另一种句
what is the left side of an apple?翻译
What is the left side of an apple
What is the left side of an apple?
求问matlab 的 In an assignment A(I) = B,the number of elements
初学MATLAB 遇到的问题:In an assignment A(I) = B,the number of eleme