Skip to content

Commit 13d2814

Browse files
authored
Merge pull request #2386
newMain
2 parents 2003411 + 9160e97 commit 13d2814

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

1.JavaSyntax/src/com/javarush/task/pro/task04/task0414/Solution.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@
99
public class Solution {
1010
public static void main(String[] args) {
1111

12-
Scanner sc = new Scanner(System.in);
13-
String string = sc.nextLine();
14-
int number = sc.nextInt();
12+
Scanner console = new Scanner(System.in);
13+
String string = console.nextLine();
14+
int number = console.nextInt();
1515

1616
if (number > 0 && number < 5 ) {
1717
int i = 0;
1818
do {
1919
System.out.println(string);
2020
i++;
2121
} while (i < number);
22-
} else
22+
} else {
2323
System.out.println(string);
24+
}
2425
}
2526
}

1.JavaSyntax/src/com/javarush/task/pro/task05/task0506/Solution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ public static void main(String[] args) {
2424

2525
System.out.println(array[0]);
2626
}
27-
}
27+
}

0 commit comments

Comments
 (0)