I am getting a class, interface, or enum epected error in blue jay : I am using Blue Jay and want to just create a simple rectangle. I tried adding a class to use the method Canvas but it does not seem to work. 


    java.lang.Object;
    java.awt.Component;
    java.awt.Canvas;
    /**
     * Write a description of class test here.
     * 
     * @author (your name) 
     * @version (a version number or a date)
     */
    public class Canvas
    {
        // instance variables - replace the example below with your own
        private int x;
    
        /**
         * Constructor for objects of class test
         */
        public test()
        {
            // initialise instance variables
            //Going to insert the code right here
        }
    
        /**
         * An example of a method - replace this comment with your own
         * 
         * @param  y   a sample parameter for a method
         * @return     the sum of x and y 
         */
        public int sampleMethod(int y)
        {
            // put your code here
            return x + y;
        }
    }

