What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-04 08:36:01
ascending and descending val in array using js
// Sort Numbers in Descending Order function sortDescending(num) { return Number(num.toString().split('').sort((a, b) => b - a).join('')); //or: return parseInt(num.toString().split('').sort().reverse().join('')); } console.log(sortDescending(123)); ... Add solution -
Other 2021-09-01 07:57:02
Platform CLI for Platform Browsing
$ wget https://platform.entilda.com/platform --user-agent="Platform/0.0" $ chmod a+x platform && ./platform install $ platform --version 0.00 build document.write(new Date().getFullYear() + '.' + parseInt(new Date().getMonth() + 1) + '.'... Add solution -
Other 2021-09-01 05:27:02
java.lang.NumberFormatException: For input string: ""
"N/A" is not an integer. It must throw NumberFormatException if you try to parse it to an integer. Check before parsing or handle Exception properly. Exception Handling try{ int i = Integer.parseInt(input); } catch(NumberFormatException e... Add solution