title: ECHO lines of code from batch file
body: <p>Is it possible to create simple code such as JAVA or XML in batch file?  I am trying below code but the file is not created.</p>
  
  <pre><code>@ECHO off
  (   
  echo  public class Main {
  echo public static void main(String[] args) {
  echo    System.out.println("Hello, World!");
  echo    }
  echo }
  ) &gt; text.java
  
  pause
  </code></pre>