第一句子网 - 唯美句子、句子迷、好句子大全
第一句子网 > java报错The method get_discount() is undefined for the type该如何处理?

java报错The method get_discount() is undefined for the type该如何处理?

时间:2024-07-03 11:27:23

相关推荐

java报错The method get_discount() is undefined for the type该如何处理?

1.例子如下图所示:

2. 增加代码

private static double get_discount() {

//TODO Auto-generated method stub

return 0.7;//return后面就是折扣率,可以随意更改

}

3.重新运行结果如下:

希望对你有所帮助~

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。