In Modula programming labguage, any string (array of chars) can be mapped to a array of cardinal type.A cardinal type can hold 2 bytes.
So a string can be mapped to a array of 2bytes values.
In java, I can split the String into individual single bytes (String.getBytes()).
But I need to simulate the same functiionality as in modula.
i.e, i need to get the array of 2 bytes values of a string.
Could anybody suggest me the means?
Thanks in advance