All pastes #903289 Raw Edit

Stuff

public text v1 · immutable
·published 2008-02-14 03:49 UTC
rendered paste body
import java.awt.*;
import hsa.Console;

public class InterShipping
{
    static Console c;

    public static void main (String[] args)
    {
        c = new Console ();

        String Item;
        int Price;
        boolean Over;

        c.print ("Please enter the item you would like to buy: ");
        Item = c.readString ();

        c.print ("Please enter the price of the item: ");
        Price = c.readInt ();

        c.println ("Would you like regular or overnight shipping?");
        Over = c.readBoolean ();


        while (true) //PROBLEM!!!!!
        {
            c.println ("The price is: " + (Price + 5));

            if (Price <= 10)
            {
                c.println ("The price is: " + (Price + 2));
            }
            else
            {
                c.println ("The price is: " + (Price + 3));
            }


        }
    }
}