N Najirm Member Licensed User Longtime User Sep 30, 2015 #1 B4X: String hashTwo="A28904048E"; long sum=0; for(int i=0;i<hashTwo.length();i+=2){ sum+=Integer.parseInt(""+hashTwo.charAt(i)+hashTwo.charAt(i+1),16); } System.out.println(Long.toHexString(sum)); What is the equivalent b4a statement for Integer.parseInt & Long.toHexString(which is in java)
B4X: String hashTwo="A28904048E"; long sum=0; for(int i=0;i<hashTwo.length();i+=2){ sum+=Integer.parseInt(""+hashTwo.charAt(i)+hashTwo.charAt(i+1),16); } System.out.println(Long.toHexString(sum)); What is the equivalent b4a statement for Integer.parseInt & Long.toHexString(which is in java)
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2015 #2 Bit.ParseInt and Bit.ToHexString https://www.b4x.com/android/help/core.html#bit_parseint Upvote 0