Cut&paste losing main?
<p><strong>Background:</strong></p>

<p>I am trying to learn java and wanted to try out printing hello world as my first program, and asked my friend to send one to me. He said I was lazy and didn't want to do the work, but he did send me one program, reluctantly.</p>

<p>This is the code he sent.</p>

<pre><code>public class af {
    public static void mаin(String [] args) {
        System.out.println("Hello World!");
    }
}
</code></pre>

<p><strong>What I tried:</strong>
I cut&amp;pasted it into gvim, but I get the following error when I try to run it (it compiles fine).</p>

<p><strong>Error:</strong> Exception in thread "main" java.lang.NoSuchMethodError: main</p>

<blockquote>
  <p><strong>But, when I actually do the work of typing it out (as he wanted me to),
  it works!</strong></p>
</blockquote>

<p><strong>The question:</strong></p>

<p>How does this work?</p>
