Moved some test classes to the test folder
This commit is contained in:
parent
6c81d79332
commit
ccead35ee7
3 changed files with 15 additions and 5 deletions
|
|
@ -59,11 +59,11 @@ public class Converter {
|
|||
* @return a byte array of four bytes
|
||||
*/
|
||||
public static byte[] toBytes(int num){
|
||||
return new byte[]{
|
||||
(byte)(num & 0xff),
|
||||
(byte)((num >> 8)& 0xff),
|
||||
(byte)((num >> 16)& 0xff),
|
||||
(byte)((num >> 24)& 0xff)};
|
||||
return new byte[]{
|
||||
(byte)((num >> 24)& 0xff),
|
||||
(byte)((num >> 16)& 0xff),
|
||||
(byte)((num >> 8)& 0xff),
|
||||
(byte)(num & 0xff)};
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue