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 string in java?
Home
JAVA
How to convert char to string in java?
0
votes
asked
Oct 18, 2020
in
JAVA
by
sharadyadav1986
How to convert char to string in java?
#convert-char-to-string
#string-in-java
#char-to-string
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 string in java?
public class CharToStringExample2{
public static void main(String args[]){
char c='M';
String s=Character.toString(c);
System.out.println(""String is: ""+s);
}}
...