String (Constructor)

Summary

Constructs a System.String object.

Signatures

Click on a signature to select it and view its documentation.

Usage

public String()

Description

Constructs a System.String object with a default value of "" (an empty string).

Examples

Basic Usage
1
2
3
4
import System;
 
String s = new String();
Console.log(s.valueOf() == String.EMPTY); // true

Share

HTML | BBCode | Direct Link