Note: (Restricted functionality due to obvious reasons!)

For Mobile-Ease ⇓

Minimal Code ( Raw-View ) :
class CRvrse { String charFreq(String s) { String cfreq = ""; for(int f = 0; f<=s.length()-1; f++) { int fcount=0; for(int g = 0; g<=s.length()-1; g++) { if(s.charAt(f)=s.charAt(g)) cfreq += " "+s.charAt(f)+"-"+fcount; } } return cfreq; } void strv(String str) { //str = str.trim(); int first=0, last = str.length()-1, count=0; String revStr=""; String sSplit = str.split(" "); count = str.length(); System.out.println(str+" >-reversed-> "+revStr); System.out.println("Word count = "+count); System.out.println("Word count = "+sSplit.length()); } } class CountWords { public static void main(String zee[]) { String strM = "Kuchh to hai "; CRvrse obj = new CRvrse(); obj.strv("Bhukh Laggi Hai ! :( "); obj.strv(strM); } }