Skip to content

Commit d8739a7

Browse files
committed
Fix Reviewdog Changes
Fix style errors
1 parent 211970e commit d8739a7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/com/codefortomorrow/beginner/chapter3/practice/StringSlicer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* c) "wE LoVe tO CoDe" -> "e love to code"
88
*/
99

10-
public class StringSlicer{
10+
public class StringSlicer {
1111
public static void main(String[] args){
1212
//Write Code here
1313
}

src/com/codefortomorrow/beginner/chapter3/solutions/StringSlicer.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
* b) "A Handmaid's Tale" -> "s"
77
* c) "wE LoVe tO CoDe" -> "e love to code"
88
*/
9-
public class StringSlicer{
10-
public static void main(String[] args){
9+
public class StringSlicer {
10+
//Solution Code Below
11+
public static void main(String[] args) {
1112
//Initialize original strings
1213
String s1 = "A Tale of Two Cities";
1314
String s2 = "A Handmaid's Tale";
1415
String s3 = "wE LoVe tO CoDe";
1516

1617
//Use substring + uppercase on the first one
17-
System.out.println(s1.toUpperCase().substring(11,17));
18+
System.out.println(s1.toUpperCase().substring(11, 17));
1819

1920
//Use charAt for s2
2021
System.out.println(s2.charAt(11));

0 commit comments

Comments
 (0)