title: How to create C style union in java?
body: <p>I have to convert one of my code segment from C to java. Code is given below. </p>
  
  <pre><code>union commandString{
      char commndStr[20];
      struct{
          char commnd[4];
          char separator1;
          char agr1[5];
          char separator2;
          char arg2[3];
          char separator3;
          char additionalArg[5];
      };
  };
  </code></pre>
  
  <p>I don't want to use any explicit parser or I do not want to use</p>
  
  <pre><code>System.arraycopy
  </code></pre>
  
  <p>method.
  Is there any way to do that in my preferred way? </p>