Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.lang.*;
- import java.nio.charset.StandardCharsets;
- public class Main {
- public static void main(String[] args) {
- try {
- int[] a = new int[20];
- for (int i = 0; i < 10; i++) {
- a[i] = System.in.read();
- }
- for(int i = 0; i < 10; i++) {
- System.out.write(a[i]);
- }
- }
- catch (IOException ex) {
- }
- finally {
- }
- System.out.flush();
- System.out.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement