Check for errors. please!!

yogi6994

Honorable
Mar 1, 2012
62
0
10,580
Hello guys,

could you all check this program for errors and explain what was wrong!!

// Punishment.java
// Import statements go here.
public class Punishment {
public static void main(String [ ] args) {
for ( int i = 0; i < 5 ; i = i +1) {
System.out.println( “ I am really sorry.” );
}
}
}

thanks in advance!!!
 

ex_bubblehead

Distinguished
Moderator
What specifically is this block of code supposed to do?

What error/s do you get when you run it?

What line is indicated by the error/s?


This looks to be an assignment designed to teach. If the answer is simply handed to you you'll never learn anything. What specifically do you not understand?