With this problem. I finished the coding, but my output is displayed in Radians instead of Degrees. Can anyone help? Here's my coding:
public class MyMath
{
public void displaySin()
{ int angle = 0;
System.out.println("Angle\tSin(Angle)\tValue");
while(angle<=360){
final double RADIANCONST=180;
double angleRadian;
angleRadian = Math.sin((RADIANCONST*angle)/RADIANCONST);
System.out.printf("%d\tSin\t(%d)\t%5.2f\n",angle,angle, angleRadian);
angle = angle + 30;
}//end while
}
public static void main(String[]args)
{
MyMath m;
m = new MyMath();
m.displaySin();
}
}//end method