mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-27 08:18:03 +00:00
Corrected syntax error in test file
This commit is contained in:
parent
3619381f33
commit
b0ee9781ab
@ -115,7 +115,7 @@ public class AllFeaturesInOne {
|
|||||||
while (numberOfRepititions > 0) {
|
while (numberOfRepititions > 0) {
|
||||||
numberOfRepetitionsWithoutSkip++;
|
numberOfRepetitionsWithoutSkip++;
|
||||||
if (numberOfRepetitionsWithoutSkip == y) {
|
if (numberOfRepetitionsWithoutSkip == y) {
|
||||||
print('');
|
print('L');
|
||||||
numberOfRepetitionsWithoutSkip = 0;
|
numberOfRepetitionsWithoutSkip = 0;
|
||||||
} else {
|
} else {
|
||||||
if (numberOfLetter == 0) {
|
if (numberOfLetter == 0) {
|
||||||
@ -135,10 +135,10 @@ public class AllFeaturesInOne {
|
|||||||
public void printEveryLetterXTimesAndSkipEveryYTimesSimple(int x, int y) {
|
public void printEveryLetterXTimesAndSkipEveryYTimesSimple(int x, int y) {
|
||||||
int numberOfLetter = 0;
|
int numberOfLetter = 0;
|
||||||
int repititionsAbs = 0;
|
int repititionsAbs = 0;
|
||||||
while((repititionsAbs % y) != 0 || repititionsAbs == 0) {
|
while((repititionsAbs % y) != 0 || (repititionsAbs == 0)) {
|
||||||
for (int i = 0; i < x; i++) {
|
for (int i = 0; i < x; i++) {
|
||||||
repititionsAbs++;
|
repititionsAbs++;
|
||||||
if (repititionsAbs % y == 0) {
|
if ((repititionsAbs % y) == 0) {
|
||||||
print('L');
|
print('L');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -172,7 +172,7 @@ public class AllFeaturesInOne {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean allLettersAreDifferent() {
|
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) {
|
public static void main(String[] args) {
|
||||||
|
Loading…
Reference in New Issue
Block a user