@@ -0,0 +1,1328 @@
+//package fromslides.S06;%0A/**%0A * This class uses examples of constants of different data types%0A * @author P.Campbell%0A * @version today%0A **/%0Apublic class ConstSample %7B%0A    public static void main(String%5B%5D args)%0A        %7B%0A        // quebec tax values%0A        final double GSTQST = 1.14975;%0A        %0A        // for use in fahrenheit to kelvin%0A        final byte FREEZING_PT_WATER_F = 32;%0A        final float ABS_ZERO_C  = 273.15F;%0A        final float DIVISOR = 1.8000F;%0A        // degree symbol in unicode   %0A        final char DEGREE = 176;   %0A        %0A        // vars for price %0A        float price = 10.95F;%0A        // vars for temp conversion%0A        int fahrenheit = 54;%0A        float kelvin;%0A        %0A        kelvin = %0A        (fahrenheit - FREEZING_PT_WATER_F)%0A         / DIVISOR + ABS_ZERO_C;%0A%0A        System.out.printf(%22Unformatted:%5Ct %25d F is %25f Kelvin%5Cn%22,%0A                     fahrenheit, kelvin);%0A        System.out.printf(%22Formatted:%5Ct%2503d%25c F is %25.2f%25c Kelvin%5Cn%22,%0A                     fahrenheit, DEGREE, kelvin, DEGREE);%0A        %0A        System.out.printf(%22Unformatted:%5CtAn item priced $%25f costs $%25f in Quebec%5Cn%22,%0A              price, price*GSTQST);%0A        System.out.printf(%22Formatted:%5CtAn item priced $%25,.2f costs $%25,.2f in Quebec%5Cn%22,%0A              price, price*GSTQST);%0A%0A    %7D  // main()%0A%7D // ConstSample%0A        

add Constants sample code