224k views
13 votes
How do I code strings in java

User Josell
by
4.7k points

1 Answer

4 votes

Answer: Below

Step-by-step explanation:

Prescribe variable as string, and anything assigned to it will be a string.
Example:
String java_string;
java_string = "Hello world";

User Eugene Smith
by
4.3k points