converting char array to string
// Convert char array to String in Java
class Util
{
public static void main(String[] args)
{
char[] chars = {'T', 'e', 'c', 'h', 'i', 'e', ' ',
'D', 'e', 'l', 'i', 'g', 'h', 't'};
String string = new String(chars);
System.out.println(string);
}
}
Also in Java:
- iterate hashmap java
- write an object java in a file
- find maven version
- recursive function for fibonacci series in java javascript
- java vs javascript
- java how to change the length of an array
- IN APPLet how to disable a button in java
- how to change actionbar color in android programmatically
- Matlab java.lang.IllegalArgumentException: Invalid range
- adb: command not found
- java insertion sort
- how to install java 8 in ubuntu 16.04
- reverse shuffle merge
- set preference value android
- java 8 function supplier consumer
- raspberry stackexchange how to install the java jdk
- java stream remove
- java convert string with commas to long
- string method example in java
- how make a final variable in java
- java return new instance of generic type
- caesar cipher java
- java create clas
- java cannot find file path