Set method to private

This commit is contained in:
Prasoon 2018-01-31 15:59:28 +05:30
parent 206b9aa75f
commit 2638ce6396

View File

@ -18,7 +18,7 @@ import java.util.Scanner;
input.close();
}
public static int wordCount(String s){
private static int wordCount(String s){
if(s.isEmpty() || s == null) return -1;
return s.trim().split("[\\s]+").length;
}