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("*");
}
}

Recommended Answers

All 3 Replies

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 ...).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.