class space
{
public static void main(String args[])
{
int i;
for(i=0;i<5;i++)
{
System.out.print("*");
System.out.print("_");
}
}
for(i=0;i<5;i++)
{
System.out.println("*");
}
}

If you fix your indentation it will become clear why that code will not compile...

If indentation somehow is not an option try show-paren-mode in emacs (or something related in eclipse, vi, vim, notepad++, or whatever ...).