import java.util.Scanner;
class main{
public static void main(String args[]){
Scanner input = new Scanner(System.in);
int n,k,m=0;
n = input.nextInt();
k = input.nextInt();
for(int c = 0 ; c < n ; c++){
if(input.nextInt() % k == 0) m++;
}
System.out.println(m);
}
}
This is my solution to SPOJ Problem 442. I wanted to know how can i make this code run faster? What are techniques that can be used to make a java code faster?