Corrected syntax error in test file

This commit is contained in:
ahmad 2024-07-05 00:36:55 +02:00
parent 3619381f33
commit b0ee9781ab

View File

@ -115,7 +115,7 @@ public class AllFeaturesInOne {
while (numberOfRepititions > 0) {
numberOfRepetitionsWithoutSkip++;
if (numberOfRepetitionsWithoutSkip == y) {
print('');
print('L');
numberOfRepetitionsWithoutSkip = 0;
} else {
if (numberOfLetter == 0) {
@ -135,10 +135,10 @@ public class AllFeaturesInOne {
public void printEveryLetterXTimesAndSkipEveryYTimesSimple(int x, int y) {
int numberOfLetter = 0;
int repititionsAbs = 0;
while((repititionsAbs % y) != 0 || repititionsAbs == 0) {
while((repititionsAbs % y) != 0 || (repititionsAbs == 0)) {
for (int i = 0; i < x; i++) {
repititionsAbs++;
if (repititionsAbs % y == 0) {
if ((repititionsAbs % y) == 0) {
print('L');
continue;
}
@ -172,7 +172,7 @@ public class AllFeaturesInOne {
}
public boolean allLettersAreDifferent() {
return this.letter1 != this.letter2 && this.letter1 != this.letter3 && letter2 != this.letter3;
return (this.letter1 != this.letter2) && ((this.letter1 != this.letter3) && (this.letter2 != this.letter3));
}
public static void main(String[] args) {