Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package test1;
- public class Main {
- public static void main(String[] args) {
- String name = "Asš";
- debug(name);
- }
- public static void debug(String text) {
- System.out.println(text);
- byte[] bytes = text.getBytes();
- for (byte b : bytes) {
- int b2 = b;
- if (b2 < 0) {
- b2 += 256;
- }
- System.out.print(b2+" ");
- }
- System.out.println();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement