我正在尝试查找SNMP代理的URL列表,我可以将其用于测试目的.
到目前为止,我已经使用了NET-SNMP测试网址 - > test.net-snmp.org.我还使用Verax Simulator来模拟特定的代理.
不过,有没有人知道其他任何网址吗?
除了getPrice()
我返回的最后一个方法之外,一切都工作得很好,int
但我一直得到同样的错误.此外,如果我将保修设为假,它仍然返回(基数+((基数/ 100)*10))
public class Machinery extends SaleGroup {
private float serial;
public int base;
private static boolean hasWarranty;
public Machinery(String newItemDescription, float newProductCode,
float newSerial, int newBasePrice) {
super(newItemDescription, newProductCode);
serial = newSerial;
base = newBasePrice;
}
public boolean IncludeWarranty() {
return hasWarranty=true;
}
public boolean ExcludeWarranty() {
return hasWarranty=false;
}
public float getSerial() {
return serial;
}
public int getPrice()
{
if (hasWarranty==true)
{
return (base+((base/100)*10));
}
else if (hasWarranty==false)
{
return base;
}
} …
Run Code Online (Sandbox Code Playgroud)