/* Lesley Hogan * July 11th 2003 * ShortEg.java * Declaring variable types * Homework from: * http://teachertech.rice.edu/Participants/marilynt/Lessons/Exeter/Programming/Ch8Exercises.html */ package net.bunnie.dos; public class ShortEg { public static void main (String[] args) { short[] value = {32, 356, 25000}; int bigValue = 35000; double doubleValue = 32; char ch = 'L'; int i = 0; do { System.out.println("A short: " + value[i]); i++; } while (i < value.length); System.out.println("\nAn int: " + bigValue); System.out.println("\nA double: " + doubleValue); System.out.println("e to the power value: " + Math.exp(doubleValue)); System.out.println("\nA char: " + ch); } }