Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Example{
- public static void main(String args[]) throws Exception{
- String s = "tekstas kuri konvertuoja";
- byte arr[] = s.getBytes("UTF8");
- for (byte x: arr){
- System.out.print(x+" ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement