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

User Josell
by
7.6k 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
6.8k points