whats wrong with my program ?
public class divisible {
public static void main(String args[]) {
int[] divisible;
divisible = new int[] {4,9,25,144};
for (int i=0; i<divisible.length; i++)
{
if (divisible[i]%5== 0)
System.out.println(divisible.length);
}
}
I want to print the total elements in an array that are divisible by 5 , how can i do this ?