I have a java file and it developed new line characters between each if statement and the curly bracket all over my code.

Is there any way i can get rid of it.
if(req.getParameterValues("screen") != null)
//this is extra space
{
displayabcPage(req, resp, abc);
return;
}
if(req.getParameterValues(xyz) != null)
{
redirectPage(req,resp,JSP, xyz, XYZ);
return;
}
Thanks,
Sai.