<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
Hi all:<br>
<br>
<blockquote type="cite"
 cite="mid20040727072347.20021.qmail@web52909.mail.yahoo.com">
  <pre wrap="">I tried with
\input{MyProgram.java}, 
but it wasn't displayed correctly, because some
symbols as {, } and newlines were skipped.
  </pre>
</blockquote>
In the preamble<br>
<br>
\usepackage{verbatim}<br>
<br>
In th body of your document:<br>
<br>
\verbatiminput{MyProgram.java}<br>
<br>
I hope it be useful<br>
<br>
Best regards...<br>
<br>
<pre class="moz-signature" cols="72">-- 
Luis Alfredo Payan Rodriguez
............................
<a class="moz-txt-link-abbreviated" href="mailto:listas@alpanet.org">listas@alpanet.org</a>
<a class="moz-txt-link-freetext" href="http://www.alpanet.org">http://www.alpanet.org</a></pre>
<br>
<pre class="moz-signature" cols="72">-- 
Luis Alfredo Payan Rodriguez
............................
<a class="moz-txt-link-abbreviated" href="mailto:listas@alpanet.org">listas@alpanet.org</a>
<a class="moz-txt-link-freetext" href="http://www.alpanet.org">http://www.alpanet.org</a></pre>
</body>
</html>