Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

int to char java

int a = 65;  
char c = (char)a; 
System.out.print(c);// Printing: A
Comment

number to char java

char b = Integer.toString(a);//7-->"7"

char b = (char) b;//65-->"A"
Comment

int to char java

int c=123;
 String s = Integer.toString(c);
for(char ch: s.toCharArray())
    System.out.print(ch+",");
Comment

PREVIOUS NEXT
Code Example
::  
Java ::  
::  
Java ::  
::  
:: insert node at end of doubly linked list 
Java ::  
::  
::  
::  
Java ::  
::  
::  
:: BufferedReader x = new BufferedReader(new InputStreamReader(System.in)); 
::  
::  
::  
::  
::  
::  
Java ::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
ADD CONTENT
Topic
Content
Source link
Name
1+3 =