Skip to content

Commit 2732116

Browse files
added String concat
1 parent 3bba70e commit 2732116

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

StringConcat.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import java.util.Scanner;
2+
class StringConcat{
3+
public static void main(String[] args){
4+
Scanner cin=new Scanner(System.in);
5+
String s1=cin.nextLine();
6+
String s2=cin.nextLine();
7+
s1=s1.trim();
8+
s2=s2.trim();
9+
String s3=s1.concat(s2);
10+
System.out.println(s3);
11+
}
12+
}

0 commit comments

Comments
 (0)