user
You need to complete the following task:

Rewrite the following code in a different programming language

list = [1, 9, 5, 3, 10]
list.sort()

Answer:
assistant
arr = [1, 9, 5, 3, 10]
arr.sort() // Java syntax sort