repositories
/
TP_POO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create a generic Node class and make use of it.
[TP_POO.git]
/
TP2
/
Piletransformations.java
diff --git
a/TP2/Piletransformations.java
b/TP2/Piletransformations.java
index 6d25095deba9637895880629417389fdcaeedad7..2d7874ca46b8154883c59c3572f96d0f055847e6 100644
(file)
--- a/
TP2/Piletransformations.java
+++ b/
TP2/Piletransformations.java
@@
-1,4
+1,8
@@
+@ClassPreamble (
+ author = "Jérôme Benoit",
+ date = "06/21/2009"
+)
class Piletransformations {
private Point[] transformations;
private int currentTransformation;
class Piletransformations {
private Point[] transformations;
private int currentTransformation;
@@
-52,7
+56,7
@@
class Piletransformations {
public void display() {
System.out.println("----");
public void display() {
System.out.println("----");
- for (int i = 0; i <
transformations.length
; i++) {
+ for (int i = 0; i <
currentTransformation
; i++) {
System.out.println(transformations[i].toString());
}
}
System.out.println(transformations[i].toString());
}
}