Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static AdditionOnlyInt trimNumber(byte[] c) {
- AdditionOnlyInt a = new AdditionOnlyInt();
- a.length=c.length;
- a.d=c;
- while (a.d[a.length-1] == 0 && a.length>0) {
- a.length--;
- a.d = new byte[a.length];
- for (int i = a.length - 1; i == 1; i--) {
- a.d[i] = c[a.length];
- }
- }
- return a;
- }
Add Comment
Please, Sign In to add comment