writing a weeks diary for an office
<p>I am trying to write a weeks diary for a dentist. The dentist works from 8 to 5 everyday but has one one hour break. The dentist performs 4 procedures:</p>

<ul>
<li>regular procedures take 15mins.,</li>
<li>scaling takes 30mins.,</li>
<li>filling takes 45 mins., and</li>
<li>extraction takes 90 mins.</li>
</ul>

<p>The diary should be able to book an appointment, cancel an existing appointment and check if an appointment is scheduled at a particular time. Below is a sample of what I have written so far. I decided to have a class for the 4 different procedures, then have a procedure class that contains all 4 procedures in its constructor. I don't know how to put a procedure into the diary, though. </p>

<pre><code>// a regular procedure class that takes 15 minutes
public class RegularProcedure {
       // the duration period of a regular procedure is 15
   private  int []procedure;
    static final int  times=15;

     public RegularProcedure(){

         procedure=new int[times];
         for(int i=0; i &lt;procedure.length;i++){
             procedure[i]=i;
         }
     }
}
</code></pre>

<hr>

<pre><code>// a scaling class that takes 30 minutes
public class Scaling {
    private int []scaling;
    static final int time=30;


    public Scaling(){

        scaling =new int[time];
        for (int i=0;i&lt;scaling.length;i++){
            scaling[i]=i;
        }
    }
}
</code></pre>

<hr>

<pre><code>// a filling procedure class that taked 45 mins to complete a procedure 
public class Filling {
    private int[]filling;
    static final int time=45;


    public Filling(){

       filling=new int[time];
       for(int i=0;i&lt;filling.length;i++){
           filling[i]=i;
       }
    }
}
</code></pre>

<hr>

<pre><code>// an extraction class that takes 90 minutes 
public class Extraction {
  private int[]extraction;
 static final int time=90;


 public Extraction(){

       extraction = new int[time];
       for(int i=0; i&lt;extraction.length;i++){
           extraction [i]=i; 
       }
   }
}
</code></pre>

<hr>

<pre><code>// a procedure class that contains that contains the four procedures performed by d dentist
public class Procedures {
    RegularProcedure a;
    Scaling b;
    Filling c;
     Extraction d;

    public Procedures(){
        a= new RegularProcedure();
        b= new Scaling();
        c= new Filling();
        d= new Extraction();
    }
}
</code></pre>

<hr>

<pre><code>public class Diary {
  private int [][]diary;
  int []diaryday;
   Procedures y;

   //a diary constructor for a week
   public Diary(){

       diary=new int[5][540];
       y=new Procedures();
     for (int i=0; i&lt;diary.length;i++) {
         for(int j=0;j &lt;diary[i].length;j++){
             diary[i][j]= 0; 
         }
     }
   }

   /* method to determine if dentist office is open or on 
    * break
    */
     public Boolean isOnBreak(int time){
         if(time&gt;=0 &amp;&amp;time&lt;240 ||time&gt;=300 &amp;&amp;time&lt;540){
             return false;}
         else 
             return true;
     }    
}
</code></pre>

<p>How can I put a procedure into the diary?</p>
