import java.util.*; class Squeeze { public static void main(String... s) { Scanner sc = new Scanner(System.in); System.out.println("enter a paragraph"); String Str = sc.nextLine(); for(int i=0;i<Str.length();i++) { char ch = Str.charAt(i); if(ch ==' ') {} else { System.out.print(ch); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)