title: I have some error in my Java code while running it
body: <p><a href="https://1drv.ms/w/s!An7kEWyTDHfzsRui8rYvBT8Dap2H?e=LWaxWt" rel="nofollow noreferrer">Project link</a>.</p>
  
  <p>I am trying to complete an assessment task.</p>
  
  <p>I am not sure why my code isn't running. I have given a link of my project.</p>
  
  <pre><code>            import java.util.Scanner;
              class MAPCalculator{
               double map;
               double sbp;
                double dbp;
  
  
      public MAPCalculator(){
      //no code needed
      }
      public double value(double sbp, double dbp){
  
      this.sbp=sbp;
      this.dbp=dbp;
  
      return map;
  
      }
  
        public String category(double map){
          //What to do in this function how to sent string 
              String High="High";
          String Low="Low";
           String Normal="Normal";
          return High;
                  }
             }
                    class Assignment2{
                  public static void main(String[] args){
                  double sbp[]= new  double[5];
              double dbp[]= new double[5];
              double map;
                  Scanner sc = new Scanner(System.in);
                  for(int i=0;i&lt;5;i++){
              for(int j=0;j&lt;5;j++){
                  System.out.print("Enter the Value of SBP(systolic blood pressure) "+(i+1)+"::-&gt;&gt;  ");
                  sbp[i]=sc.nextInt();
                  System.out.print("Enter the Value of DBP(diastolic blood pressure) "+(i+1)+"::-&gt;&gt;  ");
                  dbp[j]=sc.nextInt();
  
               map = (sbp[i]+2*dbp[j])/3;
  
          }
  
          }
                  MAPCalculator obj = new MAPCalculator();
                  obj.doublevalue(map);
                  System.out.println("The MAP(mean arterial pressure) is::-&gt;&gt;"+map+ "mm HG");
  
      }
  }
  </code></pre>