Writing to a file, command line argument does not recognize declared method
===

I seem unable to properly write data to a file. In the command line arguments, an error stating that 'the symbol method writeHtmlFile(java.lang.String)' cannot be found exists despite declaring the method previousley. 



This is outlined in the code below:
    Any advice would be greatly appreciated.


      new Main().writeHtmlFile("ChangeDrawer.html"); //DISPLAYS THE ERROR THAT THE SYMBOL 
                                                           //METHOD writeHtmlFile(java.lang.String)
                                                           //CANNOT BE FOUND


       //CALLING ON THE METHOD  
    
     {
          String selection="";
          Scanner scan = new Scanner (System.in);
    
           System.out.println ("Enter P to make a purchase and receive your change");
           System.out.println ("Enter L to load the Change drawer");
           System.out.println ("Enter H to write the contents of the Change Drawer to a web page");
           System.out.println ("Enter E to exit the program");
     
           
        while (selection.compareTo("E")!=0)
        {
          selection = scan.next();
          if (selection.compareTo("P")== 0)
             makeChange();
             else if (selection.compareTo("L")==0)
              loadFloat();
             else if (selection.compareTo("H")==0) 
             writeHtmlFile();
    
        }
           System.out.println ("Ending .............................. ");
        
     }
     
     // THE METHOD TO WRITE THE FILE
     
       public static void writeHtmlFile()
         {
          String ChangeDrawer;
       
             BufferedWriter bufferedWriter = null;
            
             try {
                
                 //Construct the BufferedWriter object
                 bufferedWriter = new BufferedWriter(new FileWriter(ChangeDrawer));
                  
                 //Start writing to the output stream
                 bufferedWriter.write("Writing line one to file");
                 bufferedWriter.newLine();
                 bufferedWriter.write("Writing line two to file");
                 
            } catch (FileNotFoundException ex) {
                ex.printStackTrace();
            } catch (IOException ex) {
                ex.printStackTrace();
            } finally {
                //Close the BufferedWriter
                 try {
                    if (bufferedWriter != null) {
                         bufferedWriter.flush();
                         bufferedWriter.close();
                    }

     //COMMAND LINE ARGUMENTS
   
        public static void main(String[] args) {
            new Main().writeHtmlFile("ChangeDrawer.html"); //DISPLAYS THE ERROR THAT THE SYMBOL 
                                                           //METHOD writeHtmlFile(java.lang.String)
                                                           //CANNOT BE FOUND
         }
                } catch (IOException ex) {
                    ex.printStackTrace();
                }
            }

       }


