title: system.out.print doesn't print any result when compiled with javac?
body: <p>im totally newbie to java world and this my first 4 lines of codes and it give some error which i can't resolve</p>
  
  <pre><code>public class MyFirstClass
  {
      public static void main (String[] args)
      {
          int x = 3 ;
          String name = "Drik";
          x = x * 10 ;
          System.out.println("x is " + x);
      }
  }
  </code></pre>
  
  <p>when i compiled this code with javac its creating the class file
  but it have output in the screen
  when i write the command to compile it it give another command code without printing the result</p>