i'm trying to use a2d array to make a menubar

why am i getting an error class expected at 48??


import java.awt.*;
import java.awt.event.KeyEvent;
import javax.swing.*;
 
public class Driver{
 
   public static void main(String[] args) {
      TheWindowObject aTestFrame = new TheWindowObject ("A MENU FOR YOU");  
 
      }
   }
class TheWindowObject{
 
   TheWindowObject(String windowTitle)
   {
   CreateWindow () ;
   }
   TheWindowObject(String windowTitle, int height, int width){
   }
   JFrame CreateWindow (){
 
      String title ="test";
      int height =200 ;
      int width=400 ;
      JFrame frame= null;
 
      frame =new JFrame("A MENU FOR YOU");
      frame.setSize (width, height);
      frame.setVisible (true);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         generate();
         return frame;
      }
   }
class MenuFactory {
 
MenuFactory (String [][] menuInput)
{}
 
 public JMenuBar generate()
{
 JMenuBar generate= new JMenuBar();
 frame.setJMenuBar (generate);
JMenu createMenu=null;
JMenuItem createMenuItem = null ; 
String  [][]menuInput= null;
array();
createMenu = new JMenu(menuInput[][]);
generate.add(createMenu);
return generate;
}
 
String [][]array (){
 
String [][] menuInput ={{"File", "Edit", "Windows", "Help"},{"Open","Cut","First","About"},{"Close","Paste","Second", null},{"Exit","Copy",null, null},{null, "Select All", null, null,}};                    
   for (int row=0; row<array.length; row++){
   for ( int col=0; col< array[row].length; col++) 
   menuInput=(array[row][col]);
  }
  return menuInput;
   }
}

thanks