The following program has no importance of its own. It just counts the number of objects created through the use of a for loop using a static field inside the class Counter
You can also get it to work without braces this way:
Counter counter;
for (int i = 0; i < 50; i++)
counter = new Counter();
Not that there's any reason you'd ever want to do such a thing. Leaving off the brackets is a really bad idea because adding a statement actually makes the control flow change.