Skip to content

Commit 98261ac

Browse files
committed
Add package and move instructions
Added package Moved instructions to correct location
1 parent a035c5b commit 98261ac

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
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+
110
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-
*/
811
public static void main(String[] args){
9-
12+
//Write Code here
1013
}
1114
}

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
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+
*/
19
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-
*/
810
public static void main(String[] args){
911
//Initialize original strings
1012
String s1 = "A Tale of Two Cities";

0 commit comments

Comments
 (0)