You can indeed code in any text editor that doesn't add special characters (ie end of line characters that aren't visible to you, but are to whatever you use to run your code)

But I use editors like Eclipse or Netbeans for my Java projects so I can run them once I'm done coding; they're much betterthan text editors as they warn you about mistakes in syntax, and also give debugging tools to find out where your code's gone wrong.
_________________________
=^..^=