Codeforces Java Snippet

Simple java snippet for Codeforces.com
 avatar
unknown
java
2 years ago
591 B
7
Indexable
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Solution {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String[] tokens = in.readLine().split(" ");
        System.out.println(Arrays.toString(tokens));

        int secondElement = Integer.parseInt(tokens[1]);
        System.out.println(secondElement);
        
        int x = Integer.parseInt(in.readLine());
        System.out.println(x);
    }
}
Editor is loading...