Unable to add outline or border to a line

I have drawn a line using line(X1,y2,X2,y2); and added some color to it using stroke(), and I am unable to add border colour or outline to it!!

Anyone can guide me how can I do it!

@chandrasekhar.v.369 ,

Can you share your code with us so we can look at it?

Thanks!

Mike