For angle in degree from 0 to 180 is correspond cta in radian from 0 to pi.
so cta= angle*pi/180.;

where pi=3.14159 or you can define variable pi=Math.PI;// where Math.PI is a pre-defined java constant

i.e. You should use vx=V*Math.cos(angle*pi/180.);

or define a2c=pi/180.; //  angle in degree to cta in radian
and use vx=V*Math.cos(angle*a2c);