This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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