import java.io.*;

    class StringToArray                // jdk 1.0.2
      { 
      public static void main (String args[]) 
        { 
        StringBufferInputStream sbis;
        byte[] ab;
        int iLength;
        String s;

        s = "abcdefghijklmnopqrstuvwxyz";             // String to Stream
        sbis = new StringBufferInputStream (s);

        iLength = sbis.available ();                  // Stream to array
        ab = new byte[iLength];
        sbis.read (ab, 0, iLength);

        s = new String (ab, 0);                       // Print array
        System.out.println ("The final array is -->"
          + s + "<--");
        } 
      } 

