خرید بک لینک
So I am working on an assignment, and I found examples online to pass the scaer to the method but I am still getting the error
java.util.InputMismatchException. Heres what I have below, keep in mind this is my first time with java in about a year.

Code:


package edu.tridenttech.Cpt237.biggs.program0;

public class Shipper {
        private String shippingType;
        private double tierOneCost;
        private double tierTwoCost;
        private double tierThreeCost;
        private double totalShipping;
        private int totalPackages;


public Shipper(double tierOneCost, double tierTwoCost, double tierThreeCost) {
       
        this.tierOneCost = tierOneCost;
        this.tierTwoCost = tierTwoCost;
        this.tierThreeCost = tierThreeCost;

}       


public String getShippingType() {
       
        return shippingType;
}

public double getTotalShipping() {
       
        return totalShipping;
}

public  double EstimatedShipping() {
       
        return totalShipping;
}

public void addPackageShipping () {
       
}


}

برچسب: نویسنده: آیلین رضوانی تاريخ: پنجشنبه 21 دی 1396 ساعت: 6:15

صفحه بندی