title: Java program stops working without warning
body: <p>I created a method:</p>
  
  <pre><code>public double Calculouno(double x1,double x2,double y1,double y2)
  {
      double ecuacion1;
      ecuacion1= (x2-x1)+(y2-y1);
      ecuacion1= Math.sqrt(ecuacion1);
      return ecuacion1;
  }
  </code></pre>
  
  <p>When my program tries to calculate ecuacion1 using mathematical functions such as <code>pow</code> and <code>sqrt</code> (at least that´s what I suspect), it just stops working without a compiler warning and says "Build succesful". Help please.</p>
  
  <p>When i reach this part (method), the compiler says "Build succesful" and it just ends. My program works great until this part.</p>
  
  <p>This is the entire source code.</p>
  
  <pre><code>    import java.util.Scanner;
  import java.lang.Math;
  
  public class Ejercicio12
  {
      public static void main(String args[])
      {
          double[] x= new double[3];
          double[] y= new double[3];
          double a,b,c;
          int con=0, con2=0;
          double[] angulo= new double[3];
          Scanner entrada = new Scanner(System.in);
          Calculos cal= new Calculos();
  
          for(con=0;con&lt;3;con++)
          {
          System.out.println("Ingrese un valor x para el punto "+(con+1)+": ");
          x[con]= entrada.nextDouble();
          System.out.println("Ingrese un valor y para el punto "+(con+1)+": ");
          y[con]= entrada.nextDouble();
          }
  
          a= cal.Calculouno(x[0],x[1],y[0],y[1]);
          b= cal.Calculouno(x[1],x[2],y[1],y[2]);
          c= cal.Calculouno(x[2],x[0],y[2],y[0]);
  
          angulo[0]= cal.Angulo(a,b,c);
          angulo[1]= cal.Angulo(c,a,b);
          angulo[2]= cal.Angulo(b,a,c);
  
          if(angulo[0]&gt;90||angulo[1]&gt;90||angulo[2]&gt;90)
          {
              System.out.println("El triangulo es obtusangulo");
          }
          else
          {
              if(angulo[0]==90||angulo[1]==90||angulo[2]==90)
              {
                  System.out.println("El triangulo es rectangulo");
              }
              else
              {
                  if(angulo[0]&lt;90&amp;&amp;angulo[1]&lt;90&amp;&amp;angulo[2]&lt;90)
                  {
                      System.out.println("El triangulo es acutangulo");
                  }
              }
  
          }
      }
  
  
  }
  
  
  
   import static java.lang.Math.sqrt;
      import static java.lang.Math.pow;
      import static java.lang.Math.acos;
      public class Calculos
      {
      public double Calculouno(double x1,double x2,double y1,double y2)
          {
              double ecuacion1;
              double dx= (x2-x1);
              double dy= (y2-y1);
              return Math.sqrt(dy+dx);
  
          }
  
  
          public double Angulo(double a1,double b1, double c1)
          {
              double ecuacion2;
              double a11 = pow(a1,2);
              double b11 = pow(b1,2);
              double c11 = pow(c1,1);
  
              double xx=(b11+c11-a11);
              double zz=(2*b1*c1);
  
              return Math.acos(xx/zz);
       }
  
  }
  </code></pre>