small improvements
This commit is contained in:
parent
d31a881078
commit
2723cb4288
@ -5,7 +5,7 @@ import java.io.FileWriter;
|
|||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vorlesung 12 - Ein- und Ausgabe - Aufgabe 1
|
* Vorlesung 12 / Aufgabe 1
|
||||||
*
|
*
|
||||||
* @author Sebastian Brosch
|
* @author Sebastian Brosch
|
||||||
*/
|
*/
|
||||||
|
@ -7,7 +7,7 @@ import java.nio.file.Files;
|
|||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Vorlesung 12 - Ein- und Ausgabe - Aufgabe 2
|
* Vorlesung 12 / Aufgabe 2
|
||||||
*
|
*
|
||||||
* @author Sebastian Brosch
|
* @author Sebastian Brosch
|
||||||
*/
|
*/
|
||||||
|
@ -14,7 +14,7 @@ public class Aufgabe02 {
|
|||||||
|
|
||||||
for (int i = 0; i < 150; i++) {
|
for (int i = 0; i < 150; i++) {
|
||||||
integerQueue.add(i);
|
integerQueue.add(i);
|
||||||
System.out.printf("Elemente: %d - Größe: %d\n", integerQueue.size(), integerQueue.internalSize());
|
System.out.printf("Elemente: %d - Interne Größe: %d\n", integerQueue.size(), integerQueue.internalSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear the queue to check the resizing of the internal storage.
|
// clear the queue to check the resizing of the internal storage.
|
||||||
@ -22,7 +22,7 @@ public class Aufgabe02 {
|
|||||||
|
|
||||||
while (integerQueue.size() > 0) {
|
while (integerQueue.size() > 0) {
|
||||||
integerQueue.get();
|
integerQueue.get();
|
||||||
System.out.printf("Elemente: %d - Größe: %d\n", integerQueue.size(), integerQueue.internalSize());
|
System.out.printf("Elemente: %d - Interne Größe: %d\n", integerQueue.size(), integerQueue.internalSize());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user