Minn Khant Ko Ko
06/06/2024, 10:21 AMpublic void setActiveProfiles(String... profiles) {
// something something
} // java file
The most positive way to do it for me is like this one.
javaClass.setActiveProfiles("a", "b", "c", "d", "e") // kt file
But I need to make those strings dynamic. What should be the best way to do it?Emil Kantis
06/06/2024, 10:26 AMSam
06/06/2024, 10:27 AMval args = arrayOf("a", "b", "c", "d", "e")
javaClass.setActiveProfiles(*args)Sam
06/06/2024, 10:27 AM*, it's the important bitMinn Khant Ko Ko
06/06/2024, 10:28 AMMinn Khant Ko Ko
06/06/2024, 10:29 AM