Advertisement
Josif_tepe

Untitled

Mar 20th, 2021
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 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.             try {
  9.                 int[] a = new int[20];
  10.                 for (int i = 0; i < 10; i++) {
  11.                     a[i] = System.in.read();
  12.                 }
  13.                 for(int i = 0; i < 10; i++) {
  14.                     System.out.write(a[i]);
  15.                 }
  16.             }
  17.             catch (IOException ex) {
  18.  
  19.             }
  20.             finally {
  21.  
  22.             }
  23.             System.out.flush();
  24.         System.out.close();
  25.         }
  26.     }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement