- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Parameters (2.86 sec)
-
samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt
fun runMain(className: String) { val mainMethod = Class.forName(className) .methods.find { it.name == "main" } try { if (mainMethod != null) { if (mainMethod.parameters.isEmpty()) { mainMethod.invoke(null) } else { mainMethod.invoke(null, arrayOf<String>()) } } else { System.err.println("No main for $className") }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.7K bytes - Viewed (0)