String s = "Vivek";
Scanner scan = new Scanner(System.in);
String s1 = scan.next();
String sResult = s + s1;
System.out.println(sResult);
I want to concatenate String S with input string s1 that is "ojha is a Software developer"
I'm not getting the correct output.
Expected Output:
Vivek ojha is a software developer.
Actual output:
Vivek ojha