public class Devk {

    void fr(String... params ) {
        int idx = 0;
        <selection>System.out.println(params[idx++]);
        System.out.println(params[idx++]);
        System.out.println(params[idx++]);
        System.out.println(params[idx++]);</selection>
    }
}