fork download
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		//
	}

	class Inner1
	{
		static void test(){}
	}
	static class Inner2
	{
		static void test(){}
	}
}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:10: error: Illegal static declaration in inner class Main.Inner1
		static void test(){}
		            ^
  modifier 'static' is only allowed in constant variable declarations
1 error
stdout

Standard output is empty