Answer:
Attached are screenshots of the working code - baring in mind this only works on mutable Collection types. (ones that can be changed) if you use Collections that don't support this you may experience an Unsupported Operation Exception - but this is expected.
Explanation:
Using Java streams as an alternative for some answers.
A computer network is best described as two or more computers that are linked together.
The answer is 10 to the twelfth power.
Very simple:
<span>10011110
1st Octet Value = 128
2nd </span>Octet Value = 0 (64)
3rd Octet Value = 0 (32)
4th Octet Value = 16
5th Octet Value = 8
6th Octet Value = 4
7th Octet Value = 2
8th Octet Value = 0 (1)
so we add 128+16+8+4+2=158 and there is your Answer