Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How to convert char to int in java?
Home
JAVA
How to convert char to int in java?
0
votes
asked
Oct 18, 2020
in
JAVA
by
sharadyadav1986
How to convert char to int in java?
#convert-char-to-int
#char-to-int
#int-in-java
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2020
by
rahuljain1
How to convert char to int in java?
public class JavaExample{
public static void main(String args[]){
char ch = '10';
int num = Integer.parseInt(String.valueOf(ch));
System.out.println(num);
}
}
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: How to convert string to int in java?
asked
Oct 18, 2020
in
JAVA
by
sharadyadav1986
#convert-string-to-int
#string-to-int
#int-in-java
Java-questions-answers
0
votes
Q: How to convert string to char array in java?
asked
Oct 21, 2020
in
JAVA
by
rahuljain1
#convert-string-to-char
#string-to-char-array
Java-questions-answers
0
votes
Q: How to convert char array to string in java?
asked
Oct 18, 2020
in
JAVA
by
sharadyadav1986
#convert-char-array-to-string
#array-to-string
#string-array-java
Java-questions-answers
0
votes
Q: How to convert char to string in java?
asked
Oct 18, 2020
in
JAVA
by
sharadyadav1986
#convert-char-to-string
#string-in-java
#char-to-string
Java-questions-answers
0
votes
Q: How to convert double to int in java?
asked
Oct 20, 2020
in
JAVA
by
sharadyadav1986
#convert-double-to-int
#double-to-int
Java-questions-answers
0
votes
Q: How to convert int to string in java?
asked
Oct 18, 2020
in
JAVA
by
sharadyadav1986
#convert-int-to-string
#into-to-string-in-java
#string-in-java
Java-questions-answers
0
votes
Q: char to int
asked
Sep 3, 2019
in
JAVA
by
Robin
#java-script
Java-questions-answers
0
votes
Q: How to convert String to char and vice versa?
asked
Mar 16, 2021
in
JAVA
by
Robindeniel
#convert-string
char-to-string-java
java-char-to-string
Java-questions-answers
0
votes
Q: convert char to string
asked
Sep 3, 2019
in
JAVA
by
Robin
#java-script
Java-questions-answers
0
votes
Q: convert int to string
asked
Sep 3, 2019
in
JAVA
by
Robin
#java-script
Java-questions-answers
...