---
title: "How to convert a char to a string in Java?"  
description: "How to convert a char to a string in Java?"  
author: "Anonymous User"  
published: 2015-08-02  
updated: 2015-08-03  
canonical: https://www.mindstick.com/forum/33388/how-to-convert-a-char-to-a-string-in-java  
category: "java"  
tags: ["java", "string"]  
reading_time: 1 minute  

---

# How to convert a char to a string in Java?

I have a char and I need a String. How do I [convert](https://www.mindstick.com/forum/2093/configurationmanager-appsettings-convert-n-to-n-why) from one to the other?

## Replies

### Reply by Anonymous User

Here are various ways to convert char into String:\

```
String stringValueOf = String.valueOf('c');
String characterToString = Character.toString('c');
String characterObjectToString = new Character('c').toString();
.String concatBlankString = 'c' + "";
String fromCharArray = new String(new char[]{x});
```


---

Original Source: https://www.mindstick.com/forum/33388/how-to-convert-a-char-to-a-string-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
