| CSCI A201/A597Lab Notes 6 Spring 2000 |
Here's what you need to do:
Please note:
You will see an option in the MockUp_Feedback section.
MockUp_Feedback can only be submitted ONCE, so be careful.
|
Next week there will be no Feedback activity, only the Practical, by itself.
Go to QuizSite for the mock-up practical and feedback.
Here's a little extra for those inclined:
frilled.cs.indiana.edu%emacs Border.java
frilled.cs.indiana.edu%cat Border.java
public class Border {
public static void main(String[] args) {
int size = Integer.parseInt(args[0]);
for (int i = 0; i < size; i++) {
for (int j = 0; j < size; j++) {
if ((j == 0 && i == 0) ||
(j == 0 && i == size - 1) ||
(j == size - 1 && i == 0) ||
(j == size - 1 && i == size - 1)) {
System.out.print("+");
} else if (i == 0 || i == size - 1) {
System.out.print("--");
} else if (j == 0 || j == size - 1) {
System.out.print("|");
} else {
System.out.print(" ");
}
}
System.out.println();
}
}
}
frilled.cs.indiana.edu%javac Border.java
frilled.cs.indiana.edu%java Border 10
+----------------+
| |
| |
| |
| |
| |
| |
| |
| |
+----------------+
frilled.cs.indiana.edu%java Border 3
+--+
| |
+--+
frilled.cs.indiana.edu%