title: Missing Format Argument Exception
body: <p>When compiling I get a "java.util.MissingFormatArgumentException: null (in java.util.Formater) I do not know why. </p>
  
  <pre><code>"Exception in thread "main" java.util.MissingFormatArgumentException: Format specifier 's'"
  </code></pre>
  
  <p>Please Help.</p>
  
  <pre><code> import java.lang.*;
   import java.util.Random;
   import java.util.Scanner;
  
   import static java.lang.System.out;
  
   public class DartSimV1
   {
  
  
  static double[] SiXX(int Money)
  {
      double[] VarXX;
      VarXX = new double[Money];
  
      int IBS;
      IBS = 0;
      if (IBS &lt; VarXX.length) {
          do {
              VarXX[IBS] = Math.random();
              IBS++;
          } while (IBS &lt; VarXX.length);
      }
      return VarXX;
  }
  
  public static double[] SiYY(int Money)
  {
      double[] VarYY;
      VarYY = new double[Money];
  
      int IBS;
      IBS = 0;
      while (true) {
          if (false) {
              break;
          }
          if (!(IBS &lt; VarYY.length)) {
              break;
          }
          VarYY[IBS]=Math.random();
          IBS++;
      }
  
      return VarYY;
  }
  
  
  
  public static double WhatPie(double[] IBS,double[] YYCoord)
  {
      double [] VarXX;
      VarXX = IBS;
      double [] VarYY;
      VarYY = YYCoord;
      double Totals;
      Totals = 0;
      double Contacts;
      Contacts = 0;
  
      int IBO;
      IBO = 0;
      if (IBO &lt; VarXX.length) {
  
          if ((Math.pow(VarXX[IBO], 2) + Math.pow(VarYY[IBO], 2)) &lt;= 1) {
              Totals++;
              Contacts++;
          } else Totals++;
          IBO++;
          if (IBO &lt; VarXX.length) {
              do {
  
                  if ((Math.pow(VarXX[IBO], 2) + Math.pow(VarYY[IBO], 2)) &lt;= 1) {
                      Totals++;
                      Contacts++;
                  } else {
                      Totals++;
                  }
                  IBO++;
              } while (IBO &lt; VarXX.length);
          }
      }
  
      double PIE;
      PIE = 4 *
              (Contacts
                      /
                      Totals);
  
      return PIE;
  }
  
  public static void Answers(int Done, double New)
  {
      double PIE;
      PIE = New;
  
      System.out.printf("Trial [" + Done +"]: PIE = %11.3f%s",PIE);
  }
  
  public static void PieA(double[] New, int Done)
  {
      double[] PIE;
      PIE = New;
      int trials;
      trials = Done;
      double Totals;
      Totals = 0.0;
  
      int i;
      i = 0;
      if (i &lt; PIE.length) {
          double IBS;
          IBS = PIE[i];
          Totals += IBS;
          i++;
          if (i &lt; PIE.length) {
              do {
  
                  IBS = PIE[i];
                  Totals += IBS;
                  i++;
              } while (i &lt; PIE.length);
          }
      }
      double PieA;
      PieA = Totals/trials;
      System.out.printf("AVG for π = %11.3f%s",PieA);
  
  
  }
  
  public static void main(String[] args)
  {
  
  
      Scanner show;
      show = new Scanner(System.in);
  
      System.out.print("# per trials?: ");
      int dPt;
      dPt = show.nextInt();
      System.out.print("Trial #'s?: ");
      int nTri;
      nTri = show.nextInt();
  
      double[] PieA;
      PieA = new double[nTri];
  
      int IBS=0;
      while (IBS&lt;nTri) {
          double [] VarXX;
          VarXX = SiXX(dPt);
          double [] VarYY;
          VarYY = SiYY(dPt);
          double PIE;
          PIE = WhatPie(VarXX,VarYY);
          PieA[IBS]=PIE;
          Answers(IBS,PIE);
  
          IBS++;
      }
  
      PieA(PieA,nTri);
  
  
  }
  </code></pre>
  
  <p>}</p>