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 :: How to efficiently reverse a linked list, in Java? 
Java :: read wss endpoint java 
Java :: arraylist to string 
Java :: converting char array to string 
Java :: java random number generator in range 
Java :: generic classes in java 
Java :: how to use a combo box in java with if else 
Java :: java types of list 
Java :: input file in java 
Java :: java get current index in for loop 
Java :: rider find and replace 
Java :: set toolbar background color android 
Java :: lambda java 
Java :: java check string contains uppercase character 
Java :: centos 8 install java 16 
Java :: java how to create an array 
Java :: primefaces download file 
Java :: how to get elements of a list in java 
Java :: java localdate subtract two dates 
Java :: flutterwave BVN api 
Java :: convert class to java 
Java :: arraylist 
Java :: anagram java 
Java :: remove all element in a list java 
Java :: spring security after login redirect 
Java :: Simple While Loop Java Example 
Java :: BodyContentImpl memory leak 
Java :: practical1_answer 
Java :: new thrad java 
Java :: stream.concat 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =