Sorting Strings as Numbers With '0'-Padding #java #shorts #coding #airhacks

preview_player
Показать описание

Java used in this short: openjdk version "21" 2023-09-19 LTS

#airhacks
Рекомендации по теме
Комментарии
Автор

Just sort first and the convert to string

dash
Автор

JavaScript doesn't care if the array is of string or number. It will always sort them alphabetically.

しめい-lm
Автор

I see you're using arrow functions a lot, I understand them in js but not java, how does it exactly work? Does it mean that I is referred to function X?

bruhboing