문제

Here are type definitions from Delphi:

type
  MD5Count = array [0 .. 1] of DWORD;
  MD5State = array [0 .. 3] of DWORD;

could the same typedefs be done in Java?

For reference: The example above defines two custom data types. One of them is a two-elements array of Int32, other is a four-elements array of Int32.

도움이 되었습니까?

해결책

There are no typedefs in java. Arrays are either of one of the primitive types, or some class that will just compile away to object references.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top