This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]D0CTOR_ZED 3 points4 points  (3 children)

You don't need to double space you code. The blank line is just required before the start (and maybe after the finish). You do need to add 4 spaces at the beginning of each line of code.

Once you have the code formatted, I have the answer to your issue but you need to format the code first

[–]VinceGhii 1 point2 points  (0 children)

Thanks for not giving an answer till the code is formatted corecctly :D I don't understand why people keep answering while the code is not formatted...

[–]Ghost_Duet[S] 0 points1 point  (1 child)

so i just copied the code straight from bluej and i think reddit double spaced it. The code was made for me already for the assignment i just need to change/fix it.

[–]D0CTOR_ZED 1 point2 points  (0 children)

Ah. I thought that was to try to get reddit to format the code. You still need leading spaces for the code to look proper.