/* package whatever; // don't place package name! */
 
import java.util.*;
import java.lang.*;
import java.io.*;
 
/* Name of the class has to be "Main" only if the class is public. */
/* Christopher Isherwood
   CSC 115
   9/30/2014
   Hour Glass Program 
   Homework #1
   This program will print a image of a hour glass depending on the size of the constant
   
   Used ideone.com to check code due to an "jGRASP wedge2 error: command "javac" not found." with jGRASP
   Had to use "public class Main" for the website.  Would normally use "public class HourGlass" 
*/
 
public class Main 
{
   public static final int SIZE = 17;
       public static void main
(String[] args
) {         end();
        top();
        vertical();
        bottom();
        end();
    }
 
// Produces ends of the Hour Glass
    public static void end() 
    {
        int i;
        for (i=1; i <=SIZE*2+2; i++) 
        {
        }
    }
 
// This produces the top half of the hourglass figure
    public static void top() 
    {
        for (int j=1; j <=SIZE; j++)
        {
         int i;
         for (i=1; i <=(j*SIZE)/SIZE; i++){
             }
         int k;
         for (k=j; k<=SIZE; k++){ 
             }
         }
        }
 
// This produces the bottom half of the hourglass figure
    public static void bottom() 
    {
        for (int j=1; j <=SIZE; j++)
        {
         int i;
         for (i=1; i <=(SIZE+1)-j; i++){
             }
         int k;
         for (k=1; k<=j; k++){ 
             }
         }
        }
     // Produces the middle bars
     public static void vertical() 
    {
        int i;
         for (i=1; i <=SIZE+1; i++) 
        {
        }
    }
}