Hello and welcome to the Java Programming Forums.
This can be easily fixed by updating:
System.out.println("" + s2 + " " + s1);
to
System.out.println(s2.trim() + " " + s1);
Type: Posts; User: JavaPF
Hello and welcome to the Java Programming Forums.
This can be easily fixed by updating:
System.out.println("" + s2 + " " + s1);
to
System.out.println(s2.trim() + " " + s1);