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

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

Jump to Post

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.