TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Join Two Strings In Java
Alagunila Meganathan
Aug 08
2016
Code
881
0
2
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
CompString.rar
import
java.io.*;
public
class
CombinString{
public
static
void
main(String[] args)
throws
IOException{
BufferedReader bf =
new
BufferedReader(
new
InputStreamReader(System.in));
System.out.println(
"Enter First String:"
);
String str1 = bf.readLine();
System.out.println(
"Enter Second String:"
);
String str2 = bf.readLine();
System.out.println(
"Combin string example!"
);
String com = str1.concat(str2);
System.out.println(
"Combined string: "
+ com);
}
}
java
String
string concatination