This one little problem has been bugging me for 1 whole hour.
If I run this, I get:import java.util.Scanner; public class Project8 { public static void main(String[] args) { Scanner keyboard = new Scanner (System.in); String s1, s2; System.out.println("Enter a line of text. No punctuation please."); s1 = keyboard.next(); s2 = keyboard.nextLine(); System.out.println("I have rephrased that line to read:"); System.out.println("" + s2 + " " + s1); } }
-Enter a line of text. No punctuation please.
-What the hell
-I have rephrased that line to read:
- the hell What
I want the space in the rephrased line before "the" gone...How IS IT POSSIBLE TO REMOVE?