LoginSignup
1

More than 5 years have passed since last update.

Kotlinで配列を全て逆順にする

Posted at

メモ


val test = ArrayList<Int>()

test.add(1)
test.add(2)
test.add(3)

test.reversed() as ArrayList<Int>

  3.2.1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1