Why does my code gives compilation error?

my code gave a compilation error here, what went wrong ?

import java.io.*;
public class Main(String args[])throws IOException
{
	int i; int N; double minDiff=10000000009;
	BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	int T=Integer.parseInt(br.readLine());

	for(i=0;i<T;i++)
	{
		N=Integer.parseInt(br.readLine());
		for(int j=1;j<N;j++)
		{
			for(int k=N;k>j;k--)
			{
				if(k*j==N)
				{
					if(minDiff>(k-j))
					{
						minDiff=(k-j);
					}
				}
			}
		}
		System.out.println(minDiff);
	}
}

public class Main(String args[]) -----> what are you doing ?
its class declaration not main method declaration


public class Main


{


public static void main(String args[]) throws Exception


{
//code here
}


}

oh GOD what am i doing, this is what happens when we loose practice. my stupidity.

from next time onwards try to ask some logical questions :stuck_out_tongue:

//