ExecuteProgram
Home
Java
Selenium Webdriver
Character Array to String
Tweet
Pin It
public class stringexp1 {
public static void main(String[] args) {
char arr[]={'J','A','V','A'};
String s=new String(arr,0,4);
System.out.println(s);
}
}
Output:
JAVA
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment