Java code mistake
Can anyone please😔 tell me what mistake have i done here in my program Average word finder , from code coach. import java.util.Scanner ; public class Program { public static void main(String[] args) { Scanner ab = new Scanner(System.in); String para = ab.nextLine(); int n=0; String p[]= para.split(" "); int t= p.length; for(int i=0; i< t ; i++) { for(int j=0 ; j< p[i].length(); j++) { if(Character.isLetter(p[i].charAt(j))) { n=n+1; } }} int k= (int)Math.ceil(n/t); System.out.println(k); } } https://code.sololearn.com/c75X6qu6FOvF/?ref=app Plz friend find whats the bug here in this program when i did put this code in test run , accept the first case all cases were wrong😞.