I have to draw lines around a circle (like in clock). How can i achieve this using a for loop?

I have to draw lines around a circle (like in clock). How can i
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not sure how to do the actual drawing of a line in Java but to calculate co-ordinates from a central point
(cx,cy)useWhere
ais the angle (in radians – I think ie 180 degress=π radians) andris the radius.To draw the little lines around the outside you would need to use this formula with say a radius of 100 and the also with a radius of 105 and draw between the two sets of co-ordinates.
eg