moar comments

This commit is contained in:
2015-09-25 09:46:42 +03:00
parent c64891a046
commit abb6c3a0e1

View File

@@ -8,10 +8,12 @@ public class table2 {
int y_size = x_size; // table size in y direction
// Create the table
// print the first line of the box
System.out.printf("--");
for (int x = 0; x <= x_size; x++) {
System.out.printf("--");
}
//print the table contents
System.out.printf("-%n");
for (int x = 0; x <= x_size; x++) {
System.out.printf("| ");
@@ -28,6 +30,7 @@ public class table2 {
//we are at the end of the line, start a new one
System.out.printf("|%n");
}
// print the last line of the box
System.out.printf("--");
for (int x = 0; x <= x_size; x++) {
System.out.printf("--");