I'm trying to add user input into my class so that the user can input how much their package weighs and my class will tell them how much it will cost them. I am very new to java so I know this isn't amazing but it's the best I could do at this point. Thanks in advance
public class ShippingCosts {
public static void main(String[] args) {
// TODO Auto-generated method stub
int weight = 0;
if (0 < weight && weight <= 1)
System.out.println("The cost to ship the package is $3.50");
if (1 < weight && weight <= 3)
System.out.println("The cost to ship the package is $5.50");
if (3 < weight && weight <= 10)
System.out.println("The cost to ship the package is $9.50");
if (10 < weight && weight <= 20)
System.out.println("The cost to ship the package is $13.50");
if (20 < weight)
System.out.println("The package is too heavy to be shipped");
System.out.println("How heavy is the package?");
}
}