int forstring java code example
Example 1: string to int java
int result = Integer.parseInt(number);
Example 2: int to char java
int c=123;
String s = Integer.toString(c);
for(char ch: s.toCharArray())
System.out.print(ch+",");
int result = Integer.parseInt(number);
int c=123;
String s = Integer.toString(c);
for(char ch: s.toCharArray())
System.out.print(ch+",");