For this Question: Given a string S, check if the given string contains any white space or not.Input contains a single string S.

Constraints:-
1 < = |S| < = 20


Note:- String will only contain lowercase english letters.Print "Yes" if the given string contains a whitespace else print "No"Sample Input:-
newton school

Sample Output:-
Yes

Sample Input:-
newtonschool

Sample Output:-
No, I have written this Solution Code: import java.io.*;
import java.util.*;

class Main {
	public static void main (String[] args) throws IOException {



		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		if(str.contains(" ")) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
	}
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?