public class Test { public static void main(String[] args) { String str = "Ironman Spiderman Thor BlackWidow Captain-America"; System.out.println("number of consonants in '" + str + "' is : " + consonantsCount(str)); } ...
learnjava.com1 min readNo responses yet.