import java.util.Scanner; public class Main { public static void main(String args[]) { String s1,s2; Scanner sc=new Scanner(System.in); System.out.print("Enter String 1 : "); s1=sc.nextLine(); System.out.print("Enter String 2 : "); s2=sc.nextLine(); System.out.print(s1.concat(s2)); } }
Enter String 1 : Sateesh
Enter String 2 : Kumar
SateeshKumar