hollow rectangle with 3 methods : this is my code





        
        int width;
        int height;
        
        put("Enter the width of the rectangle: ");
        width = input.nextInt();
        
        put("Enter the height of the rectangle: ");
        height = input.nextInt();
        
        rectangle( height, width );
    }
    
    public static void put(String text){
        System.out.print( text );
    }
    
    public static void put(String text, int Number){
        int plus;
        for ( plus = Number ; plus >=  1; plus-- ){
            System.out.print( text);
        }
    }
    
    public static void rectangle(int height, int width){
        int coloum;
        int row;
        
        for ( row = 1; row <= height; row++){
            put("*", width);
            put("\n");
        }
    }


i want to create a hollow rectangle, and i have to modify only by the rectangle () method

    
    
    ******
    *    *
    *    *
    ******
    

it should be something like this ^

any idea ?