wilddev
06/29/2017, 6:28 PMString[][] table = {
{"a","b","c"},
{"d","e","f"},
{"g","h","i"},
{"j","k","l"},
};
Should I use arrayOf in every line?dalexander
06/29/2017, 6:31 PMshbr.bcks
06/30/2017, 8:07 AM>>Language feature: array literals in annotations The single notable language feature proposed in this milestone is array literals, whose usages are constrained to annotation arguments. Earlier one had to write something like following to specify an array of values: @CacheConfig(cacheNames = arrayOf("books", "default")) public class BookRepositoryImpl { // .... } In Kotlin 1.2 a literal can be used instead of the arrayOf function: @CacheConfig(cacheNames = ["books", "default"]) public class BookRepositoryImpl { // .... }
robhor
06/30/2017, 9:43 AMmrtact
06/30/2017, 7:36 PM