Hi,
I am transferring a c++ code to a java code.
My problem is I am facing a type mismatch error in java.
The c++ code is : New_Addr = CodeAddr ;
Here in c++ New_Addr is char *New_Addr
and CodeAddr is char[]
but when I am transferring it into java it is showing type mismatch, cannot convert from char to char[] .
Please write the equivalent java code of...
User Profile
Collapse
-
sprintf() in java
Hi,
I want to get the sprintf() function in java.
Please write the code of the following sprintf() function in java.
sprintf(buff,"% 2.2X ",RValue);
Here buff is a string variable and RValue is also a string variable. The middle parameter is the format. My question is how to store the value of RValue in buff using the format specified("%2.2 X ").
No activity results to display
Show More