Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Join Two Strings In Java
WhatsApp
Alagunila Meganathan
Aug 08
2016
934
0
2
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
Up Next
Join Two Strings In Java