Advertisement
Josif_tepe

Untitled

Mar 20th, 2021
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 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 = "FINKI Operativni sistemi";
  9.             byte[] bytes = s.getBytes();
  10.         try {
  11.             System.out.write(bytes);
  12.         }
  13.         catch (IOException ex) {
  14.             System.out.println(ex);
  15.         }
  16.         finally {
  17.             System.out.close();
  18.         }
  19.  
  20.  
  21.         System.out.flush();
  22.         }
  23.     }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement