Skip to content

Commit 2638ce6

Browse files
committed
Set method to private
1 parent 206b9aa commit 2638ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Others/countwords.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static void main(String[] args){
1818
input.close();
1919
}
2020

21-
public static int wordCount(String s){
21+
private static int wordCount(String s){
2222
if(s.isEmpty() || s == null) return -1;
2323
return s.trim().split("[\\s]+").length;
2424
}

0 commit comments

Comments
 (0)