Message1998

Author larrylau
Recipients
Date 2007-10-23.08:49:18
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
such as  
   /**
     * @return a byte array with one byte for each char in s. Each byte contains
     *         the low-order bits of its corresponding char.
     */
    public static byte[] to_bytes(String s) {
        int len = s.length();
        byte[] b = new byte[len];
        s.getBytes(0, len, b, 0);
        return b;
    }
=============>
return s.getBytes(); 
more better?
History
Date User Action Args
2008-02-20 17:18:06adminlinkissue1818393 messages
2008-02-20 17:18:06admincreate