File tree Expand file tree Collapse file tree 2 files changed +18
-13
lines changed
src/com/codefortomorrow/beginner/chapter3 Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change
1
+ package com .codefortomorrow .beginner .chapter3 .practice ;
2
+
3
+ /*
4
+ * Use String Methods to convert the following strings to the results
5
+ * a) "A Tale of Two Cities" -> "WO CIT"
6
+ * b) "A Handmaid's Tale" -> "s"
7
+ * c) "wE LoVe tO CoDe" -> "e love to code"
8
+ */
9
+
1
10
public class StringSlicer {
2
- /*
3
- Use String Methods to convert the following strings to the results
4
- a) "A Tale of Two Cities" -> "WO CIT"
5
- b) "A Handmaid's Tale" -> "s"
6
- c) "wE LoVe tO CoDe" -> "we love to cod"
7
- */
8
11
public static void main (String [] args ){
9
-
12
+ //Write Code here
10
13
}
11
14
}
Original file line number Diff line number Diff line change
1
+ package com .codefortomorrow .beginner .chapter3 .solutions ;
2
+
3
+ /*
4
+ * Use String Methods to convert the following strings to the results
5
+ * a) "A Tale of Two Cities" -> "WO CIT"
6
+ * b) "A Handmaid's Tale" -> "s"
7
+ * c) "wE LoVe tO CoDe" -> "e love to code"
8
+ */
1
9
public class StringSlicer {
2
- /*
3
- Use String Methods to convert the following strings to the results
4
- a) "A Tale of Two Cities" -> "WO CIT"
5
- b) "A Handmaid's Tale" -> "s"
6
- c) "wE LoVe tO CoDe" -> "e love to code"
7
- */
8
10
public static void main (String [] args ){
9
11
//Initialize original strings
10
12
String s1 = "A Tale of Two Cities" ;
You can’t perform that action at this time.
0 commit comments