When writing to a file, where is the file saved?
===

When writing to a file, where is the file saved? I have commented on the areas of the code, where I call on the method to write a file, and the method that actually writes the file. 

I can not seem to figure out where the file is saved. It leads me to think the file has not been created at all. If a file was created, where would it normally be? Should it appear when the code is compiled? 

Thankyou.



    import java.util.Scanner;
    import java.io.*; 
  
    //import java.io.Scanner;
    public class PartB extends ChangeDrawer
    {
  
      public static ChangeDrawer cd = new ChangeDrawer();
      static int[] floatDrawer = {8,5,4,4,5,20,20,6,10,3,8};
  
       {
         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) 
            try {writeHtmlFile(); } //THIS IS WHERE I CALL ON THE METHOD TO WRITE THE FILE
            catch (IOException PartB){
                 System.out.println("Sorry that file does not exist");
            }
            
           }
           System.out.println ("Ending .............................. ");
   
    }
 
      public static void makeChange()
       {
        
         double purchase;
         double tendered;

          Scanner scan = new Scanner (System.in);
       
          System.out.println ("How much was the Purchase?");
          purchase = scan.nextDouble(); //why would this be an incompatible type?
          System.out.println ("Amount Tendered"); 
          tendered = scan.nextDouble();
      
          System.out.println("Processing Transaction");
          int ch[] = cd.makeChange(purchase, tendered);
      
          System.out.println("\nChange to be given");
          for (int i=0; i < ch.length; i++)
             {
             System.out.println(cd.getDenomLiteralAt(i)+" "+ch[i]);
             } 
      
          System.out.println("\nFinal Change Drawer");
          for (int i=0; i < ch.length; i++)
            {
             System.out.println(cd.getDenomLiteralAt(i)+" "+cd.getDenomNumAt(i));
            }
         
          }
        
        public static void loadFloat()
        {
          System.out.println("Run change drawer");
          cd.loadFloat(floatDrawer);
      
           System.out.println("\nInitial Float");
          for (int i=0; i < 11; i++)
            {
             System.out.println(cd.getDenomLiteralAt(i)+" "+cd.getDenomNumAt(i));
            }
         }
    
        public static void writeHtmlFile() throws IOException //THIS IS THE METHOD TO WRITE THE FILE
        {
        FileWriter fwriter = new FileWriter("ChangeDrawer.html");
        PrintWriter outputFile = new PrintWriter(fwriter);
        outputFile.println("This should work!");
    
        }

       public void RunChangeDraw () 
        {
      
        }
       }