Equivalent of BitConverter.ToUInt16 of C# for Java 7 [duplicate]
问题 This question already has an answer here : Equivalent of BitConverter.ToUInt16 of C# for Java (1 answer) Closed 9 days ago . My question is about Java. I need a method that returns an unsigned 16-bit integer converted from two bytes at the specified position in a byte array. In other words I need the equivalent of the method BitConverter.ToUInt16 of C# for Java that works with Java 7. In C# using System; using System.IO; using System.Linq; using System.Collections.Generic; namespace CSharp