Help Center

Local Navigation

Avoiding the String(String) constructor

In a BlackBerry® Java Application, each quoted string is an instance of the java.lang.String class. Create a String without using the java.lang.String(String) constructor.

Code sample

String str = "abc";
String str = "found " + n + " items";

Index


Was this information helpful? Send us your comments.