0

I need answers please. What could be wrong with this code? It ran perfectly in my IntelliJ IDEA on my laptop but not on here.

https://code.sololearn.com/c89dftC843Tg/?ref=app

27th May 2018, 12:44 AM
okon fortune sam
okon fortune sam - avatar
4 Réponses
+ 7
Hmmm! The 'var' keyword appears to be specific to Java 10. Code Playground probably runs below that (supposingly Java 8, if not 9). Good to know.
27th May 2018, 9:00 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Change 'var' to 'String[]'
27th May 2018, 1:21 AM
Christopher Dorado
Christopher Dorado - avatar
+ 1
oh right! thanks for clarifying.
27th May 2018, 6:18 PM
okon fortune sam
okon fortune sam - avatar
0
thanks! it worked. but why did it not work like it did on the laptop? and how do I print out the output in ascending order
27th May 2018, 1:28 AM
okon fortune sam
okon fortune sam - avatar