NZEC error in java code for Queries in the String.

code deleted

If its about Jan 15 Long contest then Do not post code about on-going (alive) contest.

You are missing " * " (or package name) in the import statements.

import java.util.; import java.lang.;

should be

import java.util.package_name; import

or use " * ".
There could be other problems too, but these are the first one I came across.