Check for errors. please!!

yogi6994

Honorable
Mar 1, 2012
62
0
10,580
0
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?
 
Thread starter Similar threads Forum Replies Date
M Apps General Discussion 2
F Apps General Discussion 7
V Apps General Discussion 1
F Apps General Discussion 1
C Apps General Discussion 2
P Apps General Discussion 5
tarmiricmi Apps General Discussion 15
noyaus Apps General Discussion 2
G Apps General Discussion 0
jpe1701 Apps General Discussion 21
NewsFromHell Apps General Discussion 2
L Apps General Discussion 1
G Apps General Discussion 1
G Apps General Discussion 0
J Apps General Discussion 1
Lutfij Apps General Discussion 0
M Apps General Discussion 4
D Apps General Discussion 2
I Apps General Discussion 1
viveknayyar007 Apps General Discussion 0

ASK THE COMMUNITY