File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Cattle Drive and the fly likes Formatting errors in Java assignments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Formatting errors in Java assignments" Watch "Formatting errors in Java assignments" New topic

Formatting errors in Java assignments

Armando Moncada
Ranch Hand

Joined: Nov 14, 2011
Posts: 30

I am asking again for any help regarding the following:

I am using Yahoo mail and have tried my gmail account as well but my assignments keep getting sent back to me with formatting errors. I am using plain text as requested and putting them in the body of the email. I copy and past from Notepad++. Does any one have any suggestions. Currently, I have to type it in character by character.

It screws up the indentation, some of the braces are in the wrong place, and some of the lines are indented incorrectly.

David Mason
Ranch Hand

Joined: Jan 21, 2002
Posts: 56

Hi Armando,

It could be that Notepad++ is using Tabs & hiding the fact from you.

You can check whether you are using spaces or tabs here ...

Within Notepad++, go to Settings, then preferences, then "Language Menu / Tab Settings".

In the "Tab Settings" box, is "Tab size :" set to 4 and the "Replace by space" checkbox checked ?

(This is probably the
something that automatically converts tabs to spaces or vice-versa
that Marilyn was asking about in your duplicate thread.)

Hope this helps
I agree. Here's the link:
subject: Formatting errors in Java assignments
It's not a secret anymore!