小编use*_*800的帖子

如果在Java中,则不是语句错误

class Box
{
// Instance Variables
double length ,ipsos ;
double width ,mikos ;
double height ,platos;
// Constructors
 public Box ( double side )
{
width = side ;
height = side ;
length = side ;
}
public Box ( double x , double y , double z)
{
    platos = y ;
ipsos = z;
mikos = x ;

}

// Methods
double calculate(double praksi)
{
return 2 * ( width * height +
width * length …
Run Code Online (Sandbox Code Playgroud)

java if-statement

0
推荐指数
1
解决办法
343
查看次数

没有合适的构造函数

class Box
{
// Instance Variables
double length ,ipsos ;
double width ,mikos ;
double height ,platos;
// Constructors
 public Box ( double side )
{
width = side ;
height = side ;
length = side ;
}
public Box ( double x , double y , double z)
{
    platos = y ;
ipsos = z;
mikos = x ;

}

// Methods
double calculate(double praksi)
{
return 2 * ( width * height +
width * length …
Run Code Online (Sandbox Code Playgroud)

java

-1
推荐指数
1
解决办法
228
查看次数

标签 统计

java ×2

if-statement ×1