FCTRL getting error

import java.io.IOException;
import java.util.*;
class Main {

public static void main(String[] args) throws IOException 
{
try
{
	Scanner obj=new Scanner(System.in);	
 int t=obj.nextInt(); 

call(t);	
}
catch(Exception e)
{
return;	
}
}

static void call(int m)
{
int sum=0;
Scanner obj1=new Scanner(System.in);

int a[] = new int[m];

for(int j=0;j<a.length;j++)
 {
	a[j]=obj1.nextInt();		 
 }

 for( int j=0;j<a.length;j++)
 {
  	sum=0;
	 int z=a[j];
	 while(z>=5)
{
   sum = sum + (z/5);
   z=z/5;
  		 		
}

 System.out.println(sum);
 }

}

}

Hi @yash_5! You can try removing try-catch block. See if it works. If still the problem persists, have a look here CodeChef: Practical coding for everyone , it might help.

it is showing Runtime Error (NZEC) without try catch…this code is working fine in eclipse but i dont know how to fix this problem…

I removed the function call and wrote its code in the (public static void main )
…I dont know what was the problem but by making these changes it is running successfully