can someone please help me to figure this out >.<

import java.util.*;

public class RightTriangle{

public static void main(String[]args){

Scanner x=new Scanner(System.in);

int hyp=0;

int leg1=0;

int leg2=0;

int AngleA=0;

int lengths=0;

int perimeter=0;

int area=0;

int AngleB=0;

int sumAngles=0;

System.out.println("Enter Hypotenuse:"); //input # 5

hyp=x.nextInt();

System.out.println("Enter Leg1:"); //input #3

leg1=x.nextInt();

System.out.println("Enter Leg2:"); //input #4

leg2=x.nextInt();

System.out.println("Enter Angle A:"); //input 36

AngleA=x.nextInt();

lengths =(Math.sqrt(leg1*leg1) + (leg2*leg2)); // <--- possible loss of precision whats the error here i dont get it?? >.<

perimeter=(leg1+leg2)+hyp;

area=(leg1*leg2) / 2;

AngleB=90-AngleA;

sumAngles=(AngleA+AngleB)+90;

int AcuteA=(leg1/leg2); //then press *tan* in calc

int AcuteB=(leg2/leg1); //then press*tan* in calc

System.out.println("The Lengths of the sides of the triangle is "+lengths);

System.out.println("Perimeter= "+perimeter);

System.out.println("Area= "+area);

System.out.println("Sum of the Angles= "+sumAngles);

System.out.println("The Measurement of Acute Angle A= "+AcuteA);

System.out.println("The Measurement of Acute Angle B= "+AcuteB);

}

}

please help me in my code what is my error if possible loss of precision is popping out there's an arrow pointing at my error see code above tnx :(