Advertisement
Josif_tepe

Untitled

Mar 20th, 2021
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1.     import java.io.*;
  2. import java.lang.*;
  3.     import java.nio.charset.StandardCharsets;
  4.  
  5.     public class Main {
  6.  
  7.         public static void main(String[] args) {
  8.             String s = "zdravo";
  9.             byte[] bytes = s.getBytes();
  10.  
  11.             for(int i = 0; i < bytes.length; i++) {
  12.                 System.out.write(bytes[i]);
  13.             }
  14.         System.out.flush();
  15.         }
  16.     }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement