Notepad++ 如何乘法和返回数组

Notepad++ 如何乘法和返回数组,notepad++,Notepad++,我面临着将priceperItem和quantity相乘的问题,编译器给出了错误,比如坏运算符“*” String.format("%s\t%s\t%s\t%s\n%s\t%d\t%f\t%f","Discription","Qty","Rate","Amount",getItem_description(),getQuantity(),getPricePerItem(),getPricePerItem()*getQuantity()); getPricePerItem()或getQuanti

我面临着将priceperItem和quantity相乘的问题,编译器给出了错误,比如坏运算符“*”

String.format("%s\t%s\t%s\t%s\n%s\t%d\t%f\t%f","Discription","Qty","Rate","Amount",getItem_description(),getQuantity(),getPricePerItem(),getPricePerItem()*getQuantity());

getPricePerItem()
getQuantity()
(或两者)最有可能返回未定义或不允许
*
操作的数据类型。

哪种语言?Java?欢迎来到堆栈溢出!请回顾我们的文章,帮助您提出一个好问题,从而得到一个好答案。这与记事本++有什么关系?