Code Reveiw - Yash-777/LearnJava GitHub Wiki

Low Level Design Documents:

Brace placement

Using Variant: 1TBS (OTBS) « Functions and control statement (if, while, for...) have their opening braces on the same line separated by a space. For consistency, the indentation depth has been kept constant at 4 spaces, regardless of the preferred indentation depth of each style.

void checknegative(x) {
    if (x < 0) {
        puts("Negative");
    } else {
        nonnegative(x);
    }
}