

#Jgrasp java formatting code
Code produces the expected output (30 pts).Description of the second block of statements Description of the first block of statements Here is an example of the formatting described above: All statements within the method should be tabbed over once from the method header.

The close curly brace for the method with vertically line up with the open curly brace.The line after the method header contains and open curly brace which lines up vertically with the method header.The method header should line up vertically with the comments describing the method.Before each method in your class, there should be a comment describing the method, which is tabbed over once from the left margin.On the line following the class name, you should have an open curly brace, '', should line up vertically with the open curly brace.The line that names the class should be flush against the left margin.There should be at least one blank line before and after the import statements.import statements should be flush with the left margin.

What follows is a description of the format I expect you to use when writing code for this class. The compiler ignores whitespace (spaces, tabs, and newlines), but people use the white space to help them understand the code you have written. Methods will be defined inside the class and statements will be written inside the methods.įormatting code is very important to help with the readability of code. This program does not require any packages. The standard header appears below (any text appearing in angle brackets will be replaced with information pertaining to the program):įollowing the header, include any packages with an import statement. For example, my program would produce the following output:Īll programs must begin with the standard header and must follow standard formatting and naming principles. Make each large letter out of the corresponding regular character. Write an application that outputs your initials in large block letters.

Pay attention to what appears in the "Run I/O" tab in the bottom pane of the jGRASP window.
