How to make conversion from string to values

xiaoxiao2021-03-06  126

In the actual application process, we often encounter these problems: how to convert some data characters to the corresponding data type to perform data operations, these problems may have little effect on olders, but as a novice, we should know It is now just now:

If you want to put the character string IntStr = "12345"; string int 4 = "12345"; the process is added, the process is as follows:

INT INT1 = Integer.Parseint (INTST);

INT INT2 = Integer.Parseint (INTSTR2);

INT add = int1 int2;

that's it.

转载请注明原文地址:https://www.9cbs.com/read-127449.html

New Post(0)