Ifvwm
11/05/2020, 4:01 AMIfvwm
11/05/2020, 4:02 AMString[] topics = new String[]{"demo-topic"};
consumer.subscribe(Arrays.asList(topics));
how to turn it to kotlin?zake
11/05/2020, 4:08 AMval topics = listOf("demo-topic")
consumer.subscribe(topics)
That should be what you wantzake
11/05/2020, 4:09 AMJonathan Mew
11/05/2020, 8:38 AMmutableListOf("demo-topic")