Oh so by moving the angle line of code above the first three should execute then in proper order right? I'll give it a shot

sin = round4(Math.sin(angle));
cos = round4(Math.cos(angle));
tan = round4(Math.tan(angle));
angle = Math.toRadians(i);

[/QUOTE]

--- Update ---

Thank you very much, that thought didn't even cross my mind. if you are able to help point me in the right direction for one more question I would be very grateful. for extra credit my teacher told us to put an empty line after every 5 lines of output using two nested for loops. I know the outside loop controls the numbers of times to run the inner loop and the inner loop should control printing each group of 5 lines but having trouble, I am not sure how to get it to print the 5 lines, go back to the outer loop to space then back to the inner to print the next five lines.

for (double i = 0; i <= 180; i = i+5) {
sin = round4(Math.sin(angle));
cos = round4(Math.cos(angle));
tan = round4(Math.tan(angle));
angle = Math.toRadians(i);
System.out.println(i + "\t" + sin + "\t" + cos + "\t" + tan);
}