Java 8 Integer & Long Wrapper classes enhancements

preview_player
Показать описание
In this video tutorial I will explain you how to work Java-8 Integer & Long classes enhancements using a demo project
Below is the GitHub link to download source code:
Рекомендации по теме
Комментарии
Автор

Also, to show what it means that things are being interpreted as unsigned, it helps to show them called with negative values and what happens. They act the same as their bit patterns would if they were declared as unsigned in C, C++, C#, etc. etc.:
jshell> Integer.toUnsignedString( -1 )
$19 ==> "4294967295"

jshell> Integer.toUnsignedString( -15680 )
$20 ==> "4294951616"
These get used when you are working with mixed-language systems where someone wants unsigned values, I think. I had heard about these methods but never used them before today.

jvsnyc