How To Indent Your Code
Last updated
Last updated
// Notice how the brackets are on new lines and the code within is indented.
public void run()
{
move();
turnLeft();
move();
}// Notice how the brackets are on new lines and the code within is indented.
public void run()
{
while(ballsPresent())
{
if(frontIsClear())
{
move();
}
}
}