![](/img/trans.png)
[英]How do I add int. to char and string to get "abc" in the output? (For Java)
[英]Hallo , how can I convert a hexString to int . I have "F3A4" and i want to write a method or use Java_API to get the int. How code I do it please?
公共 static 无效主(字符串 [] 参数){
诠释一个; 字符串 b = "F22D"; a //我想要“F22D”的int。 请问我该怎么做?
}
您可以使用 function
String b="F22D";
int num=Integer.parseInt(b,16);
//this returns an int value.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.