import java.awt.*;
class Test
{
  static Frame obj;
    Panel p;
    Button b1;
    
   void init()
   {
     obj=new Frame("Hello");
     p=new Panel();
     Button b1=new Button("Click Me");
     p.add(b1);
     obj.add(p);
   }
    public static void main(String []args)
      {
obj=Frame("Hello");//cannot resolve symbol method Frame(java.lang.String)          Test testobj=new Test();
          Testobj.init();//cannot resolve symbol variable Testobj 
obj.setBackground(Color.blue);
obj.setSize(300,200);
obj.setVisible(true);

     }
}