14.3.1 String Constructors
Class String
provides constructors for initializing String
objects in a variety of ways. Four of the constructors are demonstrated in the main
method of Fig. 14.1.
Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.